Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Don Simpson — — source: Informix-list mailing list archive (1991-1998)
Are you using isql? I have run into problems before using isql to create
SPs. When I use dbaccess it works just fine. I have no idea why isql
does not work when dbaccess does. Anyone?
BTW, I used dbacccess to create this SP and it works. I used isql and got
the same error you did.
Don.
Robert Ogren wrote:
> Question:
> This is more than likely a simple one but I am not seeing what would be
> causing this not to work.
>
> create procedure er_raise_error(laerrId int, laerrMsg char(255))
> raise exception laerrId,0,laerrMsg;> 201: A Syntax error occurred ^> end procedure;
>
> In a trigger I call the above Procedure.
> Example:
> execute procedure er_raise_error(-20012,'tblInvDelTrig: Cannot delete
> because foreign keys still exist in tblRacktblInv ')>
> I have permission to create procedures in the DB.
>
> Any help is appreciated.
>
> Thanks
>
> Rob
> rmogren@gte.net
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.