UtterAccess.com
Thank you for your support!       Follow UtterAccess on Twitter
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Sometimes my linked tables lock    
 
   
Bob G
post Jul 29 2010, 01:15 PM
Post #1

UtterAccess VIP
Posts: 6,011
From: CT



I have an Access FE and an SQL BE, The tables are linked via ODBC everything works fine. Every now and then a table will stop allowing new records. Tables are of various amounts of records even as small as 16 today. Refreshing the link doesn't fix it. I have to delete the link and get external data again.

Any clues as to why?
Go to the top of the page
 
+
datAdrenaline
post Jul 29 2010, 02:20 PM
Post #2

UtterAccess Editor
Posts: 14,954
From: Northern Virginia, USA



Does your SQL Server database allow the database size and transaction log to automatically grow? Also, do you truncate/shrink your transaction log after a backup or on a regular basis if it is not allowed to automatically grow?

----

Or ... it this a time out issue?
Go to the top of the page
 
+
datAdrenaline
post Jul 29 2010, 02:22 PM
Post #3

UtterAccess Editor
Posts: 14,954
From: Northern Virginia, USA



Side note: If the transaction log is full ... it makes no difference as to the size of the table, since a full transaction log will pretty much halt all functionality of all tables.
Go to the top of the page
 
+
vtd
post Jul 30 2010, 01:36 AM
Post #4

UtterAccess Editor
Posts: 18,980



When this happened,

1. Did you check the "Current Activity" in EM/SSMS to see if deadlocks or blocking connections occurred?

2. Did you try to edit one of the existing records and see if edit was still allowed?

3. Do you have an (SQL Server) TimeStamp Field in your Table?
Go to the top of the page
 
+
Bob G
post Jul 30 2010, 06:19 AM
Post #5

UtterAccess VIP
Posts: 6,011
From: CT



I have no access to the SQL server other than thru SQL server management. But, if it was the server then wouldn't it effect all my tables at the same time? When this happens I can't edit or add. But, delete the table from the DB, which only removes it from the DB and not the server and then link it again and everything works fine.
Go to the top of the page
 
+
vtd
post Jul 30 2010, 10:24 AM
Post #6

UtterAccess Editor
Posts: 18,980



QUOTE (Bob G @ Jul 30 2010, 09:19 PM) *
I have no access to the SQL server other than thru SQL server management.

Not sure what you meant by "SQL Server management" here. If you meant SSMS (SQL Server Management Studio) or EM (Enterprise Manager - for SQL Server 2000) then you have access to the "Current Activity" in one of the branches of the SQL Server explorer. The "Current Activity" shows you users currently connect to the server/databases, locks (and types of locks) placed on databases/Tables by various ProcessIDs (spids) and if there are deadlocks or blocking/blocked connections there are visual indications, i.e. different lock icons so that you can see deadlocks and blocking/blocked connections easily.


QUOTE
But, if it was the server then wouldn't it effect all my tables at the same time?

No. Deadlocks and blocking/blocked connections can happen on a single Table or two (e.g. deadlocks due to locking required for R.I.) but other Tables are fine. I have never seen all Tables not accessible at the same time due to deadlocks or blocking/blocked connections.


QUOTE
When this happens I can't edit or add. But, delete the table from the DB, which only removes it from the DB and not the server and then link it again and everything works fine.

It is likely that if you close the database, leave it for a while (to give SQL Server time to clear the deadlocks, blocking/blocked connections if your database/process is a party involved in these - SQL Server is fairly good at clearing these once a connection is released but it does take time) and re-open your database then the Linked Table will work fine again without deleting and re-creating.


See also UA Topic How to Transition to SQL Express regarding TimeStamp Field which I use in every SQL Server (User) Tables if I used ODBC-linked Tables to access these SQL Server Tables.
Go to the top of the page
 
+
Bob G
post Jul 30 2010, 10:27 AM
Post #7

UtterAccess VIP
Posts: 6,011
From: CT



will look for all that if and when it happens again.

thanks everyone
Go to the top of the page
 
+
vtd
post Jul 30 2010, 10:50 AM
Post #8

UtterAccess Editor
Posts: 18,980



You're welcome... Glad we could contribute a few ideas...

BTW, if you have access to the "Current Activity" and if you can see deadlocks or blocking/blocked connections, you can clear these manually, usually by killing one of the involved spids (Process ID).
Go to the top of the page
 
+
Bob G
post Jul 30 2010, 12:08 PM
Post #9

UtterAccess VIP
Posts: 6,011
From: CT



after talking to the user who had the problem, he said that he still had the AC2003 version on one machine and the AC2007 version on another. There are 2 different FE but both use the same BE. He only ran into the problem on the AC2007 as I did as well. But he said he finished what he needed with the AC2003 FE. That makes me think it has something to do with the FE but wouldn't even venture a guess. I should just stay to being a network engineer and leave the coding to the experts.
Go to the top of the page
 
+

Reply to this topicStart new topic

 



RSS Go to Top  ·  Lo-Fi Version Time is now: 16th May 2012 - 07:04 PM