Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A script that runs when SQL Server is started... 1

Status
Not open for further replies.

yakata

Programmer
Dec 13, 2000
30
0
0
FR
Hi there,

I'm just looking for a way to 'auto' execute a stored proc when a sql server is started on my server...
Actually, I need that this sp is executed BEFORE any other command or transaction is commited to the server... SQL 2000
Any Idea ?

TIA for a reply :)
 
From BOL:

sp_procoption
@ProcName = 'ProcName'
,@OptionName = 'Startup'
,@OptionValue = 'True'

Execute permissions default to members of the sysadmin fixed server roles.

Startup procedures must be owned by the database owner in the master database.
 
Cool, ClaireHsu :)

Exactly what I nedd, have a great day !)

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top