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 |
wided
Posting Yak Master
218 Posts |
Posted - 2010-06-08 : 11:06:48
|
I use sql2000I have many stored procedures, il want to find all procedure ho use a variable @var1thanks |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-06-08 : 11:19:12
|
select routine_name from information_schema.routineswhere routine_type='PROCEDURE' and object_definition(object_id(routine_name)) like '%@var1%'MadhivananFailing to plan is Planning to fail |
|
|
wided
Posting Yak Master
218 Posts |
Posted - 2010-06-08 : 12:25:46
|
thanks madivananselect routine_name from information_schema.routines : is okselect routine_name from information_schema.routineswhere routine_type='PROCEDURE' : is okbut i have an error if i continue and object_definition(object_id(routine_name)) like '%@var1the error ( object_definition is not Recognized) |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-06-09 : 02:56:08
|
Which version of SQL Server are you using?MadhivananFailing to plan is Planning to fail |
|
|
wided
Posting Yak Master
218 Posts |
Posted - 2010-06-09 : 04:01:17
|
hii user sql server 2000 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-06-09 : 04:04:56
|
Try thisselect routine_name from information_schema.routineswhere routine_type='PROCEDURE' and routine_definition like '%@var1%'But routine_definition is limited to 4000 charactersMadhivananFailing to plan is Planning to fail |
|
|
wided
Posting Yak Master
218 Posts |
Posted - 2010-06-09 : 04:17:52
|
thanks madhivananit is ok |
|
|
|
|
|