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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

startup procedures

Status
Not open for further replies.

bdiaz

Technical User
Jun 24, 2002
19
0
0
US
Can you tell me how to find out whihc procedures are run at SQL Server startup (those procedures whihc have been marked as autoproc using sp_procoption) ?
 
Try running this in the database in question:

Code:
Select sobj.*, sprop.*
from  sysobjects sobj
left outer join sysproperties sprop
on sprop.ID = sobj.ID
where sobj.XType = 'P'

If I am correct (someone correct me if I'm not), Value from sysproperties should be the value of the sp_procoption you used. 'P' should stand for stored procedure.

Hope this helps.



Catadmin - MCDBA, MCSA
"The only stupid question is the one that *wasn't* asked.
 
I think it isn't, as I have no row at all on sysproperties table.
 
Okay. Let me find my system tables diagram and see if I can figure it out.



Catadmin - MCDBA, MCSA
"The only stupid question is the one that *wasn't* asked.
 
So far the only thing I can find is master.dbo.sysconfigures which shows that the config 1547 is "Scan for Startup" with stored procedures. I haven't yet found how to connect this table back to the sysobjects table in a user database.

Thought I would post what I did find though, in case someone can use it to come up with a solution before I do.



Catadmin - MCDBA, MCSA
"The only stupid question is the one that *wasn't* asked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top