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
 New to SQL Server Programming
 Automate Generate Scripts Process

Author  Topic 

Dev@nlkss

134 Posts

Posted - 2009-04-27 : 01:04:37
Hi All,
1.Can you please tell me how to automate Generate Scripts Process for specified databases.
2.How to log the Batch job history into a table and how to get an alert through mail or sms.Currently i am using text docs for history.


$atya.

Love All Serve All.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-04-29 : 10:59:49
1. you can make use of SQL DMO . see below
http://www.nigelrivett.net/DMOScriptAllDatabases.html

2.you can use system view sysjobhistory
for sending email use sp_send_dbmail

Go to Top of Page
   

- Advertisement -