dbTalk Databases Forums  

reading the contents of a stored procedure?

comp.databases.sybase comp.databases.sybase


Discuss reading the contents of a stored procedure? in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #41  
Old   
yawnmoth
 
Posts: n/a

Default Re: reading the contents of a stored procedure? - 10-15-2008 , 01:11 PM






On Aug 30, 7:04*am, "Carl Kayser" <kayse... (AT) bls (DOT) gov> wrote:
Quote:
"Manish Negandhi" <negandhi.man... (AT) gmail (DOT) com> wrote in message

news:8d28c9b0-3399-4ff4-8035-146789d8a615 (AT) b2g2000prf (DOT) googlegroups.com...
On Aug 30, 8:58 am,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote:

Is there some SQL query you can perform to read the contents of a
storedprocedure?

You can seestoredproceduretext by executing * - *sp_helptext
procname
All I get when I do that is this:

# Lines of Text
8

I tried "select on syscomments.text column" to see if that was set to
1 and got this:

Incorrect syntax near the keyword 'on'. (severity 15, procedure N/A)


Reply With Quote
  #42  
Old   
Carl Kayser
 
Posts: n/a

Default Re: reading the contents of a stored procedure? - 10-16-2008 , 05:16 AM







"yawnmoth" <terra1024 (AT) yahoo (DOT) com> wrote

On Aug 30, 7:04 am, "Carl Kayser" <kayse... (AT) bls (DOT) gov> wrote:
Quote:
"Manish Negandhi" <negandhi.man... (AT) gmail (DOT) com> wrote in message

news:8d28c9b0-3399-4ff4-8035-146789d8a615 (AT) b2g2000prf (DOT) googlegroups.com...
On Aug 30, 8:58 am,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote:

Is there some SQL query you can perform to read the contents of a
storedprocedure?

You can seestoredproceduretext by executing - sp_helptext
procname
All I get when I do that is this:

# Lines of Text
8

I tried "select on syscomments.text column" to see if that was set to
1 and got this:

Incorrect syntax near the keyword 'on'. (severity 15, procedure N/A)


Either of the following should work.

sp_helpconfig 'select on syscomments.text'
go

or

sp_configure 'select on syscomments.text'
go




Reply With Quote
  #43  
Old   
Carl Kayser
 
Posts: n/a

Default Re: reading the contents of a stored procedure? - 10-16-2008 , 05:16 AM




"yawnmoth" <terra1024 (AT) yahoo (DOT) com> wrote

On Aug 30, 7:04 am, "Carl Kayser" <kayse... (AT) bls (DOT) gov> wrote:
Quote:
"Manish Negandhi" <negandhi.man... (AT) gmail (DOT) com> wrote in message

news:8d28c9b0-3399-4ff4-8035-146789d8a615 (AT) b2g2000prf (DOT) googlegroups.com...
On Aug 30, 8:58 am,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote:

Is there some SQL query you can perform to read the contents of a
storedprocedure?

You can seestoredproceduretext by executing - sp_helptext
procname
All I get when I do that is this:

# Lines of Text
8

I tried "select on syscomments.text column" to see if that was set to
1 and got this:

Incorrect syntax near the keyword 'on'. (severity 15, procedure N/A)


Either of the following should work.

sp_helpconfig 'select on syscomments.text'
go

or

sp_configure 'select on syscomments.text'
go




Reply With Quote
  #44  
Old   
Carl Kayser
 
Posts: n/a

Default Re: reading the contents of a stored procedure? - 10-16-2008 , 05:16 AM




"yawnmoth" <terra1024 (AT) yahoo (DOT) com> wrote

On Aug 30, 7:04 am, "Carl Kayser" <kayse... (AT) bls (DOT) gov> wrote:
Quote:
"Manish Negandhi" <negandhi.man... (AT) gmail (DOT) com> wrote in message

news:8d28c9b0-3399-4ff4-8035-146789d8a615 (AT) b2g2000prf (DOT) googlegroups.com...
On Aug 30, 8:58 am,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote:

Is there some SQL query you can perform to read the contents of a
storedprocedure?

You can seestoredproceduretext by executing - sp_helptext
procname
All I get when I do that is this:

# Lines of Text
8

I tried "select on syscomments.text column" to see if that was set to
1 and got this:

Incorrect syntax near the keyword 'on'. (severity 15, procedure N/A)


Either of the following should work.

sp_helpconfig 'select on syscomments.text'
go

or

sp_configure 'select on syscomments.text'
go




Reply With Quote
  #45  
Old   
Carl Kayser
 
Posts: n/a

Default Re: reading the contents of a stored procedure? - 10-16-2008 , 05:16 AM




"yawnmoth" <terra1024 (AT) yahoo (DOT) com> wrote

On Aug 30, 7:04 am, "Carl Kayser" <kayse... (AT) bls (DOT) gov> wrote:
Quote:
"Manish Negandhi" <negandhi.man... (AT) gmail (DOT) com> wrote in message

news:8d28c9b0-3399-4ff4-8035-146789d8a615 (AT) b2g2000prf (DOT) googlegroups.com...
On Aug 30, 8:58 am,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote:

Is there some SQL query you can perform to read the contents of a
storedprocedure?

You can seestoredproceduretext by executing - sp_helptext
procname
All I get when I do that is this:

# Lines of Text
8

I tried "select on syscomments.text column" to see if that was set to
1 and got this:

Incorrect syntax near the keyword 'on'. (severity 15, procedure N/A)


Either of the following should work.

sp_helpconfig 'select on syscomments.text'
go

or

sp_configure 'select on syscomments.text'
go




Reply With Quote
  #46  
Old   
Carl Kayser
 
Posts: n/a

Default Re: reading the contents of a stored procedure? - 10-16-2008 , 05:16 AM




"yawnmoth" <terra1024 (AT) yahoo (DOT) com> wrote

On Aug 30, 7:04 am, "Carl Kayser" <kayse... (AT) bls (DOT) gov> wrote:
Quote:
"Manish Negandhi" <negandhi.man... (AT) gmail (DOT) com> wrote in message

news:8d28c9b0-3399-4ff4-8035-146789d8a615 (AT) b2g2000prf (DOT) googlegroups.com...
On Aug 30, 8:58 am,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote:

Is there some SQL query you can perform to read the contents of a
storedprocedure?

You can seestoredproceduretext by executing - sp_helptext
procname
All I get when I do that is this:

# Lines of Text
8

I tried "select on syscomments.text column" to see if that was set to
1 and got this:

Incorrect syntax near the keyword 'on'. (severity 15, procedure N/A)


Either of the following should work.

sp_helpconfig 'select on syscomments.text'
go

or

sp_configure 'select on syscomments.text'
go




Reply With Quote
  #47  
Old   
Carl Kayser
 
Posts: n/a

Default Re: reading the contents of a stored procedure? - 10-16-2008 , 05:16 AM




"yawnmoth" <terra1024 (AT) yahoo (DOT) com> wrote

On Aug 30, 7:04 am, "Carl Kayser" <kayse... (AT) bls (DOT) gov> wrote:
Quote:
"Manish Negandhi" <negandhi.man... (AT) gmail (DOT) com> wrote in message

news:8d28c9b0-3399-4ff4-8035-146789d8a615 (AT) b2g2000prf (DOT) googlegroups.com...
On Aug 30, 8:58 am,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote:

Is there some SQL query you can perform to read the contents of a
storedprocedure?

You can seestoredproceduretext by executing - sp_helptext
procname
All I get when I do that is this:

# Lines of Text
8

I tried "select on syscomments.text column" to see if that was set to
1 and got this:

Incorrect syntax near the keyword 'on'. (severity 15, procedure N/A)


Either of the following should work.

sp_helpconfig 'select on syscomments.text'
go

or

sp_configure 'select on syscomments.text'
go




Reply With Quote
  #48  
Old   
Carl Kayser
 
Posts: n/a

Default Re: reading the contents of a stored procedure? - 10-16-2008 , 05:16 AM




"yawnmoth" <terra1024 (AT) yahoo (DOT) com> wrote

On Aug 30, 7:04 am, "Carl Kayser" <kayse... (AT) bls (DOT) gov> wrote:
Quote:
"Manish Negandhi" <negandhi.man... (AT) gmail (DOT) com> wrote in message

news:8d28c9b0-3399-4ff4-8035-146789d8a615 (AT) b2g2000prf (DOT) googlegroups.com...
On Aug 30, 8:58 am,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote:

Is there some SQL query you can perform to read the contents of a
storedprocedure?

You can seestoredproceduretext by executing - sp_helptext
procname
All I get when I do that is this:

# Lines of Text
8

I tried "select on syscomments.text column" to see if that was set to
1 and got this:

Incorrect syntax near the keyword 'on'. (severity 15, procedure N/A)


Either of the following should work.

sp_helpconfig 'select on syscomments.text'
go

or

sp_configure 'select on syscomments.text'
go




Reply With Quote
  #49  
Old   
Carl Kayser
 
Posts: n/a

Default Re: reading the contents of a stored procedure? - 10-16-2008 , 05:16 AM




"yawnmoth" <terra1024 (AT) yahoo (DOT) com> wrote

On Aug 30, 7:04 am, "Carl Kayser" <kayse... (AT) bls (DOT) gov> wrote:
Quote:
"Manish Negandhi" <negandhi.man... (AT) gmail (DOT) com> wrote in message

news:8d28c9b0-3399-4ff4-8035-146789d8a615 (AT) b2g2000prf (DOT) googlegroups.com...
On Aug 30, 8:58 am,yawnmoth<terra1... (AT) yahoo (DOT) com> wrote:

Is there some SQL query you can perform to read the contents of a
storedprocedure?

You can seestoredproceduretext by executing - sp_helptext
procname
All I get when I do that is this:

# Lines of Text
8

I tried "select on syscomments.text column" to see if that was set to
1 and got this:

Incorrect syntax near the keyword 'on'. (severity 15, procedure N/A)


Either of the following should work.

sp_helpconfig 'select on syscomments.text'
go

or

sp_configure 'select on syscomments.text'
go




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.