Viewing 15 posts - 9,481 through 9,495 (of 49,552 total)
jtallent-840140 (3/31/2014)
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
March 31, 2014 at 2:19 pm
Steve Jones - SSC Editor (3/31/2014)
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
March 31, 2014 at 10:18 am
What do you mean by 'not clearing space'?
If you mean the file isn't getting smaller, not it won't and it shouldn't. It sounds like you don't have enough space 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
March 31, 2014 at 9:53 am
Then I suspect that the resolution to this problem will involve locating another drive for TempDB or expanding the current one.
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
March 31, 2014 at 9:42 am
That script runs without error for me. Are you sure that's the exact statement which is throwing the error?
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
March 31, 2014 at 8:27 am
The arguments to CharIndex need to be in '', so there's no need to escape them. Anything inside '' is treated as a string literal. Can you post the code?...
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
March 31, 2014 at 7:54 am
Corruption in the system tables is severe. Restoring that month old backup may be a better approach than repairing.
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
March 31, 2014 at 7:44 am
You ran CheckDB with repair_allow_data_loss, and it lost data. That's what the command does.
The only way to recover is if you had backups from before the corruption occurred.
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
March 31, 2014 at 7:19 am
Yes, shrink is incredibly slow in some cases. There aren't really any tricks to it. You can shrink in chunks, you can stop the shrink at any time, it doesn't...
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
March 31, 2014 at 4:07 am
Short of running them in a similar environment and timing them, no.
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
March 31, 2014 at 3:45 am
Cody K (3/31/2014)
Funnily enough I don't see it that way. And I feel that those people love their jobs.
I would disagree. If you love your job (which involves supporting 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
March 31, 2014 at 3:11 am
Cody K (3/31/2014)
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
March 31, 2014 at 2:34 am
Partitioning is unlikely to help at all.
Unless you can add some SARGable predicates (predicates where SQL can use indexes to reduce the rows it has to read), there's probably not...
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
March 31, 2014 at 2:27 am
Lynn Pettis (3/29/2014)
DELETE TOP (1000) FROM MyTable ORDER BY yourOrderingColumn
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'ORDER'.
Amusingly enough, while updates and deletes can take a...
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
March 31, 2014 at 2:15 am
The missing indexes are suggestions, not directives. If you try one out and find that it doesn't help the query, remove the index.
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
March 31, 2014 at 2:10 am
Viewing 15 posts - 9,481 through 9,495 (of 49,552 total)