Viewing 15 posts - 11,041 through 11,055 (of 49,552 total)
Matt Crowley (11/6/2013)
GilaMonster (11/6/2013)
Matt Crowley (11/6/2013)
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 6, 2013 at 2:09 pm
Restoring or recovering?
A DB will go restoring if someone runs BACKUP LOG ... WITH NORECOVERY or runs a restore over the database and specifies NORECOVERY. In either case running RESTORE...
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 6, 2013 at 2:09 pm
Matt Crowley (11/6/2013)
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 6, 2013 at 1:41 pm
Heaps do appear in sys.dm_db_index_physical_stats, but since you can't really rebuild them there's not much point.
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 6, 2013 at 1:41 pm
Good point. Should have said CREATE ... WITH DROP_EXISTING
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 6, 2013 at 10:36 am
Next time don't restart SQL while there's a large transaction rolling back.
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 6, 2013 at 10:36 am
Please post table definitions and execution plan. Also consider getting rid of those nolocks, they're not go-faster options they can result in incorrect results.
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 6, 2013 at 7:44 am
Hope no one needs to use that database for the next several hours...
As I said, if you restart, the rollback will continue with the database unavailable. It'll be unavailable until...
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 6, 2013 at 6:59 am
Welsh Corgi (11/6/2013)
The Transaction Log Backup is 145 GB. Tried shrinking it but it did not make much of a difference.
No, it won't because there's no free space in 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
November 6, 2013 at 6:50 am
I'll second the 'rebuild indexes onto another filegroup' option. If you just rebuild them in the filegroup they're currently in, you'll probably end up with a lot of empty space...
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 6, 2013 at 6:31 am
Blocked simply means waiting for a lock that some other process has. Not a deadlock, not fatal. It's not something you can tell from just an update statement, identifying that...
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 6, 2013 at 6:26 am
Wait for it to finish or stop it and wait for it to rollback. That's pretty much it.
Or drop the database and restore from backups.
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 6, 2013 at 6:22 am
Have you considered enabling 'optimise for adhoc workloads'?
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 6, 2013 at 5:31 am
Low PLE != plan cache memory pressure. The balance between the plan cache and the data cache is complex, but they are two separate caches each with their own aging...
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 6, 2013 at 5:15 am
sys.dm_exec_cached_plans
size_in_bytes int Number of bytes consumed by the cache object.
So yes.
See whether you have memory pressure, see whether you have cache memory pressure before you spend lots...
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 6, 2013 at 4:44 am
Viewing 15 posts - 11,041 through 11,055 (of 49,552 total)