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
 SQL Server Development (2000)
 Finding a String in Several StoredProcedure

Author  Topic 

CLages
Posting Yak Master

116 Posts

Posted - 2005-08-02 : 14:20:01
Hi folks
i have a System with several StoredProcedure +- 80
Is there a easy way to find out one String searching in all SP

ex. i want to use a Column (ADT_TYPE) i think its not used anymore , but to be sure i would like to know if one of this 80 SP use this Column.

tks

CLages

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-08-02 : 14:21:33
easiest i thik is:
script the sprocs with scriptdb
and do a simple search in the created file.

Go with the flow & have fun! Else fight the flow
Go to Top of Page

CLages
Posting Yak Master

116 Posts

Posted - 2005-08-02 : 14:29:59
TKS, but I Found The Answer By Myself

select * from INFORMATION_SCHEMA.ROUTINES
where routine_definition like '%ADT_TIPO%'

C. Lages
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-08-02 : 14:33:13
cool... but i thought that INFORMATION_SCHEMA.ROUTINES can have problems with statistics not being updated...
hmmm... maybe i'm confusing it with something else...

Go with the flow & have fun! Else fight the flow
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2005-08-02 : 15:13:19
What about views, udf's, ect? How about the tables themselves?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

EDIT: Then there is this as well....

http://weblogs.sqlteam.com/brettk/archive/2004/02/05/841.aspx


Go to Top of Page
   

- Advertisement -