Viewing 15 posts - 48,451 through 48,465 (of 49,552 total)
Rather than use nolock, move any select statements that you can out of the transaction completely. This will shorten the duration of the transaction, as well as reducing locking.
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
September 26, 2007 at 12:24 pm
Thanks. None of them are serious, though the doubling lines has the possibility of getting very amusing very quickly. :hehe:
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
September 26, 2007 at 12:03 pm
Try also leaving the parameters and marking the proc for recompile every time it runs. (CREATE PROCEDURE ... WITH RECOMPILE)
Using variables, the optimiser can not make any conclusions about the...
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
September 26, 2007 at 9:55 am
There are 1000 milliseconds in a second, but even with that, it looks odd. How many CPUs do you have?
Are these lock waits? What's the full object and counter...
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
September 26, 2007 at 9:50 am
Mal Content (9/26/2007)
That's odd. Everything I have read says it's better not to have compound indexes because the optimizer can deal with separate indexes more efficiently. Do you have...
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
September 26, 2007 at 9:41 am
Thought so. I have a similar issue that appears from time to time.
What happens is that the stats for a date-time column get out of date and the optimiser...
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
September 26, 2007 at 8:51 am
You could try breaking the proc up into smaller procs. Check when transactions start and end and reduce them to the smallest necessary size.
Run profiler with the deadlock chain event...
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
September 26, 2007 at 7:16 am
Jeff Moden (23/09/2007)
Yeah... just not for access to the Production box 😉
Personally, I don't have a problem with some developers having very limited access to the production dbs. Key phrase...
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
September 23, 2007 at 9:27 am
Look in books online for sp_attach_single_file_db. That should do the trick.
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
September 23, 2007 at 8:42 am
If you're using windows authentication, then have the domain admins create a windows group for the developers and grant that access to SQL.
If you're using sql authentication, you'll have...
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
September 22, 2007 at 10:21 pm
Did you remove builtin admins as well? If not, windows authentication will get you in. I presume you don't know the sa password.
I've never tested this, but from what I've...
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
September 22, 2007 at 10:16 pm
You should be able to attach them. SQL should be able to recreate the log files. Do you not have any db backps?
I hope this is not a production...
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
September 22, 2007 at 8:57 pm
DBCC commands are T-SQL statements. Run them in your query tool of choice (management studio, query analyzer, sqlcmd, etc)
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
September 22, 2007 at 8:53 pm
You can see the thread you're responding to. Scroll down below the reply box. The box is collapsed by default, but once you expand it (icon in top right of...
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
September 22, 2007 at 7:38 pm
I can't seem to see the list of latest posts I've made. Maybe I'm missing it. I use that frequently when away from my work machine to follow up on...
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
September 22, 2007 at 7:37 pm
Viewing 15 posts - 48,451 through 48,465 (of 49,552 total)