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
 Stored Procedures

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-09-19 : 07:41:36
Gopi writes "I have one small doubt regarding stored procedures.
I have created a stored procedure with a name "storedprocedure1".
Actually where it stores( means the physical location of the stored procedure)

thanks in advance

regards
Gopi Srinadh
gopisrinath@nannacomputers.com"

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-09-19 : 07:55:10
Stored procedures are created in your current working database. You can view them in the enterprise manager, under <Your database name> \ Stored Procedures node.

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2006-09-19 : 13:48:16
The definition is stored in a system table which you can query
syscomments

There is also metadata about the procs in the sysobjects + syscolumns tables.

The execution plan of procedures are stored in the procedure cache.
the system table syscacheobjects gives you information on wich objects/procs are cached


If you are on sql2005 the "tables" / views would be:
sys.sql_modules
sys.dm_exec_cached_plans

rockmoose
Go to Top of Page
   

- Advertisement -