Unix Technical Forum

stored procedures

This is a discussion on stored procedures within the Sybase forums, part of the Database Server Software category; --> What are the reasons for using 'exec' before a stored procedure. Seems to work ok without it ?...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 04:06 PM
Peter
 
Posts: n/a
Default stored procedures

What are the reasons for using 'exec' before a stored procedure. Seems
to work ok without it ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 04:06 PM
Rob Verschoor
 
Posts: n/a
Default Re: stored procedures

"Peter" <peter.gamble@ntlworld.com> wrote in message
news:d8cba535.0311260441.6e54aeda@posting.google.c om...
> What are the reasons for using 'exec' before a stored procedure.

Seems
> to work ok without it ?



Only when the stored procedure name is the first non-comment in the
SQL batch, may you omit the 'exec[ute]' keyword. In all other cases,
'exec' is mandatory. This is documented behaviour, BTW.

HTH,

Rob
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5

Author of "Tips, Tricks & Recipes for Sybase ASE" and
"The Complete Sybase ASE Quick Reference Guide"
Online orders accepted at http://www.sypron.nl/shop

mailto:rob@DO.NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:41 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com