Hidden error kills my transaction. Help!
From: Miroo_news (miroo_at_USUNTO.poczta.fm)
Date: 03/10/04
- Next message: tristant: "Re: How to use 'Check Contraint' on a View ?"
- Previous message: simon: "Timestamp"
- Next in thread: oj: "Re: Hidden error kills my transaction. Help!"
- Reply: oj: "Re: Hidden error kills my transaction. Help!"
- Reply: Jacco Schalkwijk: "Re: Hidden error kills my transaction. Help!"
- Reply: Miroo_news: "Hidden error kills my transaction. Example."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Mar 2004 09:32:56 +0100
Hi,
The situation is as follows:
- I have a stored procedure with parameter
@ID_DOC Char(36) OUTPUT, --for uniqueidentifier
(and other paramters)
- the first line in procedure is:
select @cnt = count(*) from docs where id_doc = @ID_DOC
- the transaction begins
- the parameter @ID_DOC is set in Delphi
to value (for example): 'ED5B7DD0-BBDD-45C5-912E-64F73720080B'
- the procedure is called from Delphi using ADO
- the procedure finishes properly
But:
Profiler shows there is an error:
Error: 8169, Severity: 16, State: 2 = 'Syntax error converting from a
character string to uniqueidentifier.'
The transaction is rollbacked
The procedure goes on as the error wasn't raised
Why? Why the error which rollbacks the transaction
is not returned to Delphi as exception?
Why it occures?
Regards,
Miroo
ps.
Don't ask me why uniqueidentifier is stored in
char(36) parameter - this is not my own procedure.
- Next message: tristant: "Re: How to use 'Check Contraint' on a View ?"
- Previous message: simon: "Timestamp"
- Next in thread: oj: "Re: Hidden error kills my transaction. Help!"
- Reply: oj: "Re: Hidden error kills my transaction. Help!"
- Reply: Jacco Schalkwijk: "Re: Hidden error kills my transaction. Help!"
- Reply: Miroo_news: "Hidden error kills my transaction. Example."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|