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.
Author |
Topic |
bassem_farouk
Starting Member
18 Posts |
Posted - 2010-10-18 : 20:15:02
|
HII WANT TO SEARCH ALL THE STORED PROCEDURES FOR A WORD?EX: I WANT TO FIND ALL STORED PROCEDURES THAT CONTAIN THE TABLE TABLEXYZHOW CAN I DO THAT?THANKSThanks |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
bassem_farouk
Starting Member
18 Posts |
Posted - 2010-10-18 : 21:37:06
|
Hiit does not workselect * from syscommentswhere text like '%table1%'Thanks |
|
|
bassem_farouk
Starting Member
18 Posts |
Posted - 2010-10-18 : 21:40:21
|
sorry,it works but i can;t read the ctext and text columnsThanks |
|
|
bassem_farouk
Starting Member
18 Posts |
Posted - 2010-10-18 : 22:01:50
|
thanks i did it SELECT sysobjects.name AS [Trigger Name], SUBSTRING(syscomments.text, 0, 2060) AS [Trigger Definition], OBJECT_NAME(sysobjects.parent_obj) AS [Table Name], syscomments.encrypted AS [IsEncrpted] FROM sysobjects INNER JOIN syscomments ON sysobjects.id = syscomments.idWHERE text like '%TABLE1%'Thanks |
|
|
jeffw8713
Aged Yak Warrior
819 Posts |
|
|
|
|