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 |
|
aclol
Starting Member
4 Posts |
Posted - 2009-05-15 : 12:32:22
|
| I'm trying to look at stored procedures in a database to make sure there are no crossserver or cross database joins so we can upgrade to SQL Server 2005 from SQL 2000Can anyone tell me a script i could use to see all procedure scripts at once?Or do you have any other idea?Thanks |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-05-15 : 12:42:21
|
| [code]SELECT ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_TYPE='PROCEDURE'[/code] |
 |
|
|
aclol
Starting Member
4 Posts |
Posted - 2009-05-15 : 12:52:25
|
| thank you so much! Worked perfectly |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-05-15 : 13:09:13
|
| welcome |
 |
|
|
aclol
Starting Member
4 Posts |
Posted - 2009-05-15 : 13:23:14
|
| Sorry, I just realized that the script you gave isn't showing the actually definition of the procedures.(only title and vars are showing) |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-05-15 : 14:18:28
|
| why? are you viewing results in text or grid?try using grid option |
 |
|
|
aclol
Starting Member
4 Posts |
Posted - 2009-05-15 : 15:29:13
|
| thanks, i found a fix, highlighted all the procedures and clicked generate scriptThanks for you help though, i appreciate it.. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|