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
 Database Design and Application Architecture
 using select statements in other sp

Author  Topic 

guadr777
Starting Member

1 Post

Posted - 2009-02-20 : 14:05:14
is there are a way to retrive the select statements in sp to be used in another sp

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-20 : 14:09:10
Yes, copy/paste. If you need better help, explain very clearly what you want to do perhaps by showing us relevant code.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-02-21 : 02:10:54
sql 2005 specific

SELECT definition FROM sys.sql_modules WHERE OBJECT_NAME(object_id)='your stored procedure'


or just

sp_helptext 'your stored procedure'
Go to Top of Page
   

- Advertisement -