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
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Run a stored procedure automatically

Author  Topic 

omidshf
Starting Member

5 Posts

Posted - 2011-12-09 : 04:52:19
can a stored procedure run automatically when data files attach to a database?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-09 : 05:04:16
nope..it cant be triggered synchroinously like that
However you can schedule a job in sql server agent and make it call procedure according to a schedule though not dependent on attach step

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -