If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Counting Number of lines in procedures

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-16-11, 04:23
an2000 an2000 is offline
Registered User
 
Join Date: Mar 2011
Posts: 1
Counting Number of lines in procedures

Was wondering if there is a solution or any tips in counting the number of lines in all the procedures in a database. I have tried the sp_helptext option but this is inaccurate. Am also aware of the syscomments table with the text field which unfortunately has "char(13)" embedded in them....so not very useful....

Any help is appreciated greatly!
Reply With Quote
  #2 (permalink)  
Old 03-16-11, 07:11
trvishi trvishi is offline
Registered User
 
Join Date: Sep 2003
Location: Switzerland
Posts: 443
Quote:
Originally Posted by an2000 View Post
Was wondering if there is a solution or any tips in counting the number of lines in all the procedures in a database. I have tried the sp_helptext option but this is inaccurate. Am also aware of the syscomments table with the text field which unfortunately has "char(13)" embedded in them....so not very useful....

Any help is appreciated greatly!
In ASE 15.0, this is possible.

sp_helptext sp_help, NULL,NULL,'showsql,linenumbers'

If you are using ASE 12.5, maybe look at the code of ASE 15 sp_helptext and see if it helps?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On