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.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Informatio_schema

Author  Topic 

kumar_kunda
Starting Member

5 Posts

Posted - 2008-12-17 : 06:54:51
HI,
By using
SELECT 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 definition

kumar

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'
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-17 : 07:00:47
or just use
sp_helptext 'spRPT_PUR_PurReturnsRegItemwise'
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-17 : 07:05:42
yet another way is

SELECT OBJECT_DEFINITION (OBJECT_ID(N'spRPT_PUR_PurReturnsRegItemwise'))
Go to Top of Page
   

- Advertisement -