Easy. Use Enterprise Manager. Drill down to SQL Server Agent. Expand that. Find Jobs. Right click, select New Job. Give the job a name. Go to Steps tab. Click New Step. Fill in the blanks. Select the Advanced tab. That's where you tell it where to output the information. Make sure you give it the FULL file name (\\<path>\myfile.txt). Select Apply. Go to the Schedule tab. Schedule when you want the job to run. Click on Apply, OK.
That's basically all you need to do.
One point, if you type in the commands in the job step window, it will only take a certain amount of code lines. I suggest creating a stored procedure (refer to the Books OnLine for CREATE PROCEDURE) and run that command via the job step.
Angel and SQLBill, Thankyou. That is exactly what I am looking for. Angel, I will see how I go with Bills advice otherwise I might ask for a clue on how to create DTS packages.
I really need to go to SQL2000 training.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.