Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: PB Newbie - Stored Procedure

$
0
0

    For a Retrieval SP - that is correct.

 

    For an Insert, Update or Delete SP - just a return code is normally sent back. Normally, ASE will just return a Zero (0) at the end of your SP unless you specify something else in your code by using the RaiseError command. For example:

 

IF @@error != 0    // Built in variable like PB's error object   

    BEGIN

      RAISERROR 30100 " The insert for the GIMMY table failed"

      RETURN -1

    END


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>