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
 Transact-SQL (2005)
 content of sp from system tables

Author  Topic 

aravindt77
Posting Yak Master

120 Posts

Posted - 2008-06-04 : 01:45:45
Hi,

Anyone plz do tell me what s the query to see the text content of stored procedure from system database tables..

from which table we get the content of sp


Thanks & Regards

ARV

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-04 : 01:48:02
sp_helptext YourSPName
Go to Top of Page

aravindt77
Posting Yak Master

120 Posts

Posted - 2008-06-04 : 01:50:20
Hi, Thanks .. but i want to get the entire sp of a particular database .. for that what to do ???

ARV
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-04 : 01:52:14
quote:
Originally posted by aravindt77

Hi, Thanks .. but i want to get the entire sp of a particular database .. for that what to do ???

ARV


You want code for entire sps in a db? May i know what you're trying to do on all sps?
Go to Top of Page

aravindt77
Posting Yak Master

120 Posts

Posted - 2008-06-04 : 01:55:30
Hi Vishakh ... bcoz i want to check a particular expression column and its value taken for that not able to locate for each sp and cant locate and chek for each sp if it exists ....


ARV
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-04 : 02:02:07
quote:
Originally posted by aravindt77

Hi Vishakh ... bcoz i want to check a particular expression column and its value taken for that not able to locate for each sp and cant locate and chek for each sp if it exists ....


ARV


You could use the syscomments table for searching on text content of sps
Go to Top of Page

aravindt77
Posting Yak Master

120 Posts

Posted - 2008-06-04 : 02:17:51
Thanks a lot ... bcoz i just frgt that moment .... any way thank u so much

ARV
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-04 : 02:52:45
quote:
Originally posted by aravindt77

Thanks a lot ... bcoz i just frgt that moment .... any way thank u so much

ARV


sorry didnt get you..frgt what?
Go to Top of Page

raky
Aged Yak Warrior

767 Posts

Posted - 2008-06-04 : 02:56:14
quote:
Originally posted by visakh16

quote:
Originally posted by aravindt77

Thanks a lot ... bcoz i just frgt that moment .... any way thank u so much

ARV


sorry didnt get you..frgt what?



i think it may b 'frgt' means FORGOTTEN
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-04 : 11:59:48
or script out and do search
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
   

- Advertisement -