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 |
kumar_kunda
Starting Member
5 Posts |
Posted - 2008-12-17 : 06:54:51
|
HI,By usingSELECT ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME='spRPT_PUR_PurReturnsRegItemwise'iam getting only the first 4000 characters of the procedure how can I get the total procedure definitionkumar |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-12-17 : 07:00:20
|
select * from sys.objects where OBJECT_NAME(objid)='spRPT_PUR_PurReturnsRegItemwise' |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-12-17 : 07:00:47
|
or just usesp_helptext 'spRPT_PUR_PurReturnsRegItemwise' |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-12-17 : 07:05:42
|
yet another way isSELECT OBJECT_DEFINITION (OBJECT_ID(N'spRPT_PUR_PurReturnsRegItemwise')) |
 |
|
|
|
|