Groups | Blog | Home
all groups > sql server (microsoft) > february 2007 >

sql server (microsoft) : 0 Blocking, but lots 'o locks...can that be right?



EJO
2/28/2007 1:12:14 PM
TIA, because I really hardly know where to begin with this issue...

Currently have a SQL Server 2000 system being accessed as a backend to
a MS A2k mde. After about 6 years of working with relative pain-free
ease, my tiny db started preventing users from being able to update
one of the tables (of about 27). Everyone seems fine in the morning,
but by afternoon, the table stops being editable. Access will run and
timeout, no other errors. If I make an update directly in slq server
during this time, again timeout with no other errors. The table is
1888 rows by 40 columns being accessed by no more than 20 folks, and
more like 5-10 concurrently. In addition, there only appears to ever
be 2 folks who wind up with many, many locks, while everyone else
seems fine otherwise. They are not always the same 2 people.

spid59: 51 IS page locks on this particular object
(dbname.dbo.table.PK_table, owner type Xact)
spid59: 1318 S key locaks, same object
spid61: 39 IS page locks, same object
spid61: 922 S key locaks, same object

All users seem to have very high wait times (locks)

So far, I have run the profiler index tuner wizard, and amazingly,
what I orignally butchered does not seem to be the problem, as
applying the recommended fixes did not correct the problem. In my
reading about this issue, i found the aba_lockinfo stored procedure
(and thanks by the way, though I forget who to thank). I have also
run some of the various traces (deadlock trace, for instance) and have
become overwhelmed with the new information in attempting to
understand what it all means while still placating the users. For
instance, the MSKB aticle here:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q224453

says I should have blocks, but none appear to exist...or am I
misinterpreting this? Can there be more key locks than records in the
table?


I think I began down the right path, but am now lost in the woods.
Any help would be greatly appreciated.
Steve
3/1/2007 6:47:03 AM
[quoted text, click to view]

What did you see when you ran sp_who2?
EJO
3/6/2007 8:19:49 AM
[quoted text, click to view]

Thanks, Steve.

0 Blocked by; the highest CPU time was 10543 against msdb login nt
authority (sleeping) with a disk io of 8; being in the master db using
EM was the next highest at 1297cpu/179io. The highest CPU/disk io
related to the user db was 63CPU/8io. There were more than 2313 locks
on this one table (3 table, 3669 key, 141 page).

When I look at the other tables that have locks, there are only as
many locks as there are current users. Granted, I have a lot to learn
yet about sql server, let alone sql...but this can't be right or good,
can it?


Eric
dbahooker NO[at]SPAM hotmail.com
3/7/2007 2:55:07 PM
MDB was obsolete 10 years ago.

Just use Access Data Projects


[quoted text, click to view]

dbahooker NO[at]SPAM hotmail.com
3/7/2007 2:56:11 PM
Access MDB can't handle such a large table.

I swear to god; I've seen it myself 100 times.

MDB won't scale to 5-20 mb of data.. so throw away MDB and spit on
anyone that still uses it.


-Aaron



[quoted text, click to view]

EJO
3/21/2007 10:25:49 AM
Thanks for response, sorry for the delay, took vacation...

[quoted text, click to view]

Microsoft Access database (.mdb) file size 2 gigabytes. However,
because your database can include linked tables in other files, its
total size is limited only by available storage capacity.

and

Number of fields in a table 255
Number of open tables 2048. The actual number may be less because of
tables open internally by Microsoft Access.
Table size 1 gigabyte
Number of characters in a Text field 255

[quoted text, click to view]

None of my characteristics come close to exceeding these...and since
this is a fe/be with the SQL Server file at less than 57mb, how can MS
Access scaling be the issue?
AddThis Social Bookmark Button