 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jerry Greene Guest
|
Posted: Tue May 08, 2007 12:57 am Post subject: SQL Server Error during dbExpress Oracle transaction |
|
|
Often users of my application (written in Delphi 7) get error message "SQL Server Error: ORA-00000: normal, successful completion.", and transaction rolls back.
It happens during execution of the transaction for Oracle 9i database using dbExpress.
Here is the code:
if not SQLConnection1.InTransaction then begin
td.TransactionID := 1;
td.IsolationLevel := xilREADCOMMITTED;
SQLConnection1.StartTransaction(td);
try
// … chores for SQLQuery1
SQLQuery1.ExecSQL;
// … chores for SimpleDataSet1
SimpleDataSet1. ApplyUpdates(-1);
SQLConnection1.Commit(td);
MessageBox(0, 'Success!', PChar(Application.Title), MB_OK);
except
on E: Exception do begin
SQLConnection1.Rollback(td);
MessageBox(0, PChar(E.Message), PChar(Application.Title), MB_OK);
end;
end;
end; { if not SQLConnection1.InTransaction }
Thank you for any suggestions. |
|
| Back to top |
|
 |
Dmitry Arefiev Guest
|
Posted: Tue May 08, 2007 6:47 am Post subject: Re: SQL Server Error during dbExpress Oracle transaction |
|
|
Hello
1) What is your exact Oracle client version number ?
2) Which line of your code raises an exception ?
3) Could you provide dbExpress trace output ?
Regards,
Dmitry
--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access engine
ThinDAC - multitier data access engine |
|
| Back to top |
|
 |
Jerry Greene Guest
|
Posted: Tue May 08, 2007 7:49 pm Post subject: Re: SQL Server Error during dbExpress Oracle transaction |
|
|
1) 9.2.0.1.0
2) I have never had this error, but the clients report that they often get this error. Because all errors are captured and marked, I see that the error is generated during execution of the "SQLConnection1.Commit(td);" statement.
The weird thing is that it says "SQL Server Error", but the Oracle database connection is used.
Thank you.
Jerry
"Dmitry Arefiev" <darefiev@da-soft.com> wrote:
| Quote: | Hello
1) What is your exact Oracle client version number ?
2) Which line of your code raises an exception ?
3) Could you provide dbExpress trace output ?
Regards,
Dmitry |
|
|
| Back to top |
|
 |
Martijn Tonies Guest
|
Posted: Wed May 09, 2007 2:03 am Post subject: Re: SQL Server Error during dbExpress Oracle transaction |
|
|
| Quote: | The weird thing is that it says "SQL Server Error", but the Oracle
database connection is used. |
SQL Server -> as in, the SQL-based database server.
Not the product "Microsoft SQL Server".
--
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com |
|
| Back to top |
|
 |
Dmitry Arefiev Guest
|
Posted: Thu May 10, 2007 2:55 pm Post subject: Re: SQL Server Error during dbExpress Oracle transaction |
|
|
1) Try to update your Oracle client to the latest 9.2 update.
It looks like a bug in Oracle client.
2) Add your issue to QC.
Regards,
Dmitry
--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access engine
ThinDAC - multitier data access engine |
|
| Back to top |
|
 |
Jerry Greene Guest
|
Posted: Fri May 11, 2007 12:16 am Post subject: Re: SQL Server Error during dbExpress Oracle transaction |
|
|
Thank you.
"Dmitry Arefiev" <darefiev@da-soft.com> wrote:
| Quote: |
1) Try to update your Oracle client to the latest 9.2 update.
It looks like a bug in Oracle client.
2) Add your issue to QC.
Regards,
Dmitry |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|