开发者

Exception Handling with DB express

开发者 https://www.devze.com 2023-02-14 13:07 出处:网络
I am migrating our application from BDE to DBexpress in Delphi2010.We are connecting to Sybase Database.

I am migrating our application from BDE to DBexpress in Delphi2010.We are connecting to Sybase Database.

The exceptions raised by stored procedure using raiseerror message was getting captured by BDE but the same is not happening with DBexpress.

Eg the stored proc contains the below statement if any validation fails

select @msg = "Could not perf开发者_JS百科orm the edit because another user has changed the record "

if @field1 <> @field2 raiserror 20999 @msg return end

Is there any way to catch this exception with DB express.

or Is it a bug in dbexpress?

Thanks!


Maybe have a look at

http://www.delphigroups.info/2/9/753836.html

0

精彩评论

暂无评论...
验证码 换一张
取 消