Well this can be done with the an "Alert"
Open Enterprise Manager and your database then look under "SQL Server Agent" in the list.
Right click on the "Alerts" items and click "New alert" then give it a name, a severity and on the "Response" TAB you can "Execute" a JOB created to do what you want.
DougP, MCP
I would suggest that rather than writing to a text file each time, write to a "log" table. You can then search the log and do other manipulations, and print it using Query Analyzer or the client tool of your choice. A lot more flexible, reliable, and faster than trying to write to a text file each time. Robert Bradley
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.