Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Script Library
 Automation

Author  Topic 

gsavitha
Starting Member

3 Posts

Posted - 2011-01-31 : 04:32:34
Hi all

I have a set of query and i need to automatate that in regular intervals to avoid manual work.I need to do the below tasks.Any help would be highly appreciated.

1.Need to run automatically and store that output in particular folder?
2.Need to send an email if there is an error in completing the script.How to Set this mail process in a query?

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2011-01-31 : 05:26:56
First of all: please don't use the Script Library forum for general questions. This forum is limited to working t-sql scripts only.

Secondly, you can do all this with SQL Server Agent -> http://msdn.microsoft.com/en-us/library/ms189237.aspx

- Lumbago

My blog-> www.thefirstsql.com
Go to Top of Page
   

- Advertisement -