Hi All
I am trying to export to excell using the below query, I get a query success message but no file is created in the location. I am VERY new to SQL and found this script on google so not really sure what i am doing. any help would be fantastic
Exec
master..xp_cmdshell'bcp"use Training;
SELECT ID_Number, Employee_Number, Facilitator, Venue, Course_Name, Course_Code,
Date_From, Date_To, Number_of_Days, Received_Date, Verified_Date, Branch, Export_Flag
FROM dbo.TrainingExport
WHERE (Export_Flag IS NULL)
"queryout"C:\Temp\Test.xls"-c-CRAW'