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
 Transact-SQL (2000)
 WHERE STORED PROCEDURE ARE SAVED

Author  Topic 

imranabdulaziz
Yak Posting Veteran

83 Posts

Posted - 2007-10-27 : 01:47:01
Hi,
i am using sql server 2000.
i would like to know at which place of my hard drive my stored procedure are saved (like C:\Program Files\Microsoft SQL Server\\MSSQL\Data , we find mdf and ldf file of database)
THANK YOU.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-10-27 : 01:49:08
It doesn't work that way. Data is not stored in files. They are stored in tables inside a database. A database has data files, with the MDF being the primary one.

To answer your question though, the stored procedure code is stored in syscomments which is a system table.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

imranabdulaziz
Yak Posting Veteran

83 Posts

Posted - 2007-10-27 : 02:03:26
THANKS for removing my misconception.
i would like to know how do i fetch stored procedure say test from syscomments as i did not found sp name column in the table.

thank once again.


Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-10-27 : 03:59:32
EXEC sp_helptext 'MySprocName'

Kristen
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-10-27 : 13:10:21
Or you can open it in enterprise manager.
Go to Top of Page

Jeff Moden
Aged Yak Warrior

652 Posts

Posted - 2007-11-02 : 00:34:25
...or generate it in Query Analyzer...

--Jeff Moden
Go to Top of Page
   

- Advertisement -