Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some ADO requests are commited, some not???

Status
Not open for further replies.

davidchardonnet

Programmer
Mar 21, 2001
167
FR
Hello,

I just started a transaction and I wonder what is so strange... Some of the UPDATE statements don't work when i use them with the ADOQuery, but they work fine with the command line of the SQL Server 7 I use. There is no error message displayed. I really don't know what the problem can be.

I start with:

Form1.GlobalConnection.BeginTrans;
try
//---------------------------------------
// Here I make many requests with ADOQuery7
// I change its SQL property, and make
// SELECT,UPDATE,INSERT statements
// just for 1 transaction
//---------------------------------------
Form1.GlobalConnection.CommitTrans;
except
Form1.GlobalConnection.RollbackTrans;
raise;
end;

Do you know what it can be?

Thank you

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top