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 |
|
ds12will
Starting Member
21 Posts |
Posted - 2009-11-20 : 15:22:30
|
| Is there anyway to query the coding for stored procedures for exampleSELECT ROUTINE_NAME, ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_TYPE='PROCEDURE'the problem is the definition gets cut off after certain amount of characters |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
ds12will
Starting Member
21 Posts |
Posted - 2009-11-20 : 15:28:52
|
quote: Originally posted by X002548 either script out the sproc from EM or SSMSOr do sp_helptext <sprocname>Brett8-)Hint: Want your questions answered fast? Follow the direction in this linkhttp://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxAdd yourself!http://www.frappr.com/sqlteam
Sorry I should have been clearer. I'm converting all our DB "stuff" to UTC time and since its a pretty large DB, I'm doing a search through all the stored proceduresSELECT ROUTINE_NAME, ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_DEFINITION LIKE '%getdate%' AND ROUTINE_TYPE='PROCEDURE'what I want to know is for each procedure, how many times is getdate found in the respective code?? |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|