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 2005 Forums
 SQL Server Administration (2005)
 Get procedure code of ALL Procedures in database

Author  Topic 

Zcumbag
Starting Member

3 Posts

Posted - 2008-06-04 : 11:24:57
Hello.

Is there a way, through t-sql or through SQL Server Management Studio, to retrieve (or export to file) all procedure code for all my stored procedures?

I would like this for backup reasons. Possible?

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-06-04 : 11:33:23
You can script with Generate script task.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-04 : 13:31:24
or
http://sqlblogcasts.com/blogs/madhivanan/archive/2007/12/13/script-out-procedures-and-functions-part-2.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Zcumbag
Starting Member

3 Posts

Posted - 2008-06-05 : 08:14:34
Allright. That solved it. Rightclicking on my database in the treeview (in SQL Management Studio) -> Tasks -> Generla Script.

Thakns.
Go to Top of Page
   

- Advertisement -