Viewing 15 posts - 22,321 through 22,335 (of 49,552 total)
anthony.green (11/11/2011)
but if the dynamic sql plan is flushed from procedure cach on execution of the proc I will remove it
No. Just the procedure's plan (which has just about nothing...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 4:10 am
John Mitchell-245523 (11/11/2011)
I'm not aware of any restrictions in Standard Edition specific to clustering (maybe the number of nodes you can have in the cluster?).
Exactly that. Standard limits to 2-node...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 3:48 am
NickBalaam (11/11/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 3:47 am
Without the pk, you were getting table scans, which aren't pretty for updates and concurrency. The pk should fix this completely.
btw, just something I noticed. What's the reason for with...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 3:44 am
Read up on Count and Group By.
Hint: Start with this
SELECT District, CASE Gender WHEN 'Male' THEN 1 ELSE 0 END as Male, CASE Gender WHEN 'Female' THEN 1 ELSE 0...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 3:30 am
Can you run this and post the execution plan (it'll rollback so no permanent changes are made)
declare @id int
select @id = max(id) from ncdba.logtimes
begin transaction
update ncdba.logtimes WITH (UPDLOCK, ROWLOCK) set...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 3:26 am
p.s. Any particular reason you've chosen serialisable isolation level here?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 3:02 am
One thing to note: The rowlock hint just tells SQL to start with row locks. If it decides that it needs to escalate, it will escalate, and you very clearly...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 3:00 am
So how does the LogSearchTimes table some into this. That's clearly the table that's getting the deadlocks and, it's table-level locks.
Edit: never mind, your queries have the wrong table...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 2:55 am
The deadlock is not on the table that you're hinting and updating (logtimes), so no, you don't have an identity error.
The deadlock comes from object-level (table locks) on domain.ncdba.LogSearchTimes. Is...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 2:36 am
anthony.green (11/11/2011)
I have a situation at the moment with deadlocks which have just started happening with a very minor change to a stored proc.
Could you start a new thread for...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 2:27 am
PageLatch on what resource? Could be TempDB allocation contention, but I want to see the resource first to be sure.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 2:24 am
ProofOfLife (11/10/2011)
My conclusion from all this is that SQL Server had somehow tangled itself in relation to the stored proc - maybe something stuck in tempdb??
Not how things work....
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 2:23 am
If you're up to buying something, SQL Server MVP Deep Dives 1 has a chapter on reading deadlock graphs.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 2:12 am
Dev (11/11/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 11, 2011 at 2:11 am
Viewing 15 posts - 22,321 through 22,335 (of 49,552 total)