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
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 X locks on the SQL table

Author  Topic 

CanadaDBA

583 Posts

Posted - 2005-08-31 : 09:08:48
I have an Access query that appends some rows to a SQL Server table. The problem is that after the data is populated, there are X locks remaining on the SQL table and the developers can't do anything while they are in there. If I kill the process, then they can continue. What's the problem?

Environment:
Access 2003 Sp1
SQL Server 2000 8.00.818 SP3
Windows 2003


Canada DBA

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-08-31 : 10:23:08
I seem to recall that when MS Access makes a connection (via odbc) to a sql server table, the table is exclusively locked for the duration of the connection! (not just during the transaction). That of course is devistating to concurrent sql server usage. You should either not allow access in that manor or perhaps only allow MS Access to connect to a staging table and then use a sql process to populate the actual table.

Be One with the Optimizer
TG
Go to Top of Page

CanadaDBA

583 Posts

Posted - 2005-08-31 : 10:39:36
The code was working until last week that we deployed a new compile of Access application.
The Access query is not changed. The problem is like if I want to append 100 records, a number of 100 (or more) X locks appears on the table in SQL server. By ending the appendings, there should be a command from Access to SQL Server that update the indexes and unlock the table but this doesn't happen.

Canada DBA
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-08-31 : 10:52:04
I have no idea...If you don't get a response soon try posting this question in:
Other Forums | MS Access

Be One with the Optimizer
TG
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-08-31 : 11:37:16
This has been re-posted in MS Access. Please follow up there.

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=54619

Be One with the Optimizer
TG
Go to Top of Page
   

- Advertisement -