Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access ODBC Client Server > odbc timeout us...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1397 of 1511
Post > Topic >>

odbc timeout using begintrans on linked sql server tables

by "R.Peters" <rocha01@[EMAIL PROTECTED] > Sep 25, 2007 at 12:32 AM

Hi,

I have two different Access 2003 applications, they both have linked
tables to the same SQL Server 2005 database.
Since my applications often have to perform several related inserts,
updates, I prefer using transactions.
After carefully reading Microsoft sites and Google discussions, I
decided to use the Access built-in transaction system using
Workspaces(0).Begintrans, Workspaces(0).Committrans and
Workspaces(0).Rollback.

One of the problems I was immediately confronted with is that I get
ODBC timeouts after inserting in a table and then reading from that
same table (or from a view that has that table linked) within the same
transaction. Again I searched groups and read that with the limited
functionality of Access/Jet/ODBC transactions, one cannot read from a
table after inserting in it or updating it within the same
transaction.

However, my other Access application has no problem with executing the
same code! So now I don't understand a thing. I have two applications
both executing the same code (copied under this text). One
applications hangs on the dlookup, the other doesn't. Can anyone tell
me why this is and what the solution is?

1 Workspaces(0).Begintrans
2 sSql = "INSERT INTO dbo_T_Events (RelatieNr, Invoerhulp) VALUES (" &
iRelatieNr & ", '" & sInvoerhulp & "')"
3 CurrentDb.Execute sSql, dbSeeChanges
4 iNieuweEventNr = DLookup("EventNr",  "dbo_T_Events", "InvoerHulp =
'" & sInvoerhulp & "'")   ' TIMEOUTS!!!
5 sSql = "INSERT INTO dbo_T_AboVerlengEvents (EventNr,  etcetera
etcetera
6 CurrentDb.Execute sSql, dbSeeChanges
7 Workspaces(0).Committrans
 




 3 Posts in Topic:
odbc timeout using begintrans on linked sql server tables
"R.Peters" <  2007-09-25 00:32:03 
Re: odbc timeout using begintrans on linked sql server tables
"Mary Chipman [MSFT]  2007-09-28 11:22:41 
Re: odbc timeout using begintrans on linked sql server tables
<david@[EMAIL PROTECTE  2007-09-30 09:26:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 2:38:41 CST 2008.