Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 SQL Server transactions

Author  Topic 

sabbatini
Starting Member

2 Posts

Posted - 2005-04-27 : 16:17:16
I have linked tables from Access 97 to SQL Server 7. I'm programming in VB with DAO. If I begin a transaction, add a new record to a table and then I try to edit this record within the same transaction I get the following error "ODBC Call fail".

Example: (Bank is a SQL Server linked table in Access)

DBEngine.BeginTrans
' dbmaster is an Access 97 database !!!
dbMaster.Execute "INSERT INTO Bank (Id, Descrip) VALUES( '1' , 'BIGDOLAR' )"
dbMaster.Execute "UPDATE Bank SET Descrip='BIGDOLLAR' WHERE Id=1"
DBEngine.CommitTrans

The second execute fails. Why? Thanks.

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2005-04-27 : 17:11:48
Please do not post a question on multiple forums.

Duplicate of:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49017

CODO ERGO SUM
Go to Top of Page
   

- Advertisement -