Viewing 15 posts - 17,176 through 17,190 (of 49,552 total)
Sergiy (8/13/2012)
GilaMonster (8/13/2012)
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
August 14, 2012 at 2:16 am
Check the SQL error log. The reason for the failure to startup will be in there (unless it's a login failure, those are in the windows application event log)
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
August 13, 2012 at 4:15 pm
Generally it's not the controlled restarts that are the problem. 😉
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
August 13, 2012 at 3:17 pm
Index names are only unique per table. It's quite possible to have the same name for an index on multiple tables.
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
August 13, 2012 at 2:57 pm
Be careful with that assumption...
I've had a DB that only had long-running transactions overnight. During the day it was short transactions and mostly reads. After a crash at 3pm 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
August 13, 2012 at 2:53 pm
Restore files and filegroup doesn't sound like something you want to do. That's for piecemeal restore and partial restores, not simple database restores.
Screenshot please? Attach it to your post.
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
August 13, 2012 at 2:50 pm
As for the original question...
IF EXISTS (SELECT 1 FROM sys.indexes WHERE name = 'Index name here' AND object_id = OBJECT_ID('Table Name Here')
DROP INDEX ....
CREATE 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
August 13, 2012 at 2:47 pm
GSquared (8/13/2012)
Why not simply:
Create Index IndexName on schema.tablename (columnlist)with (drop_existing = on);
Because that does not work if the index does not exist.
Create Index doesnotexist on DBO.Test (ID)
with (drop_existing = on);
Msg...
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
August 13, 2012 at 2:44 pm
GSquared (8/13/2012)
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
August 13, 2012 at 1:59 pm
tilew-948340 (8/13/2012)
GilaMonster (8/13/2012)
tilew-948340 (8/13/2012)
BTW, I reset the "database" list by doing a backup with the option "Back up to new media set and erase all existing backup sets",
So 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
August 13, 2012 at 1:50 pm
Why is knowing this important for disaster recovery?
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
August 13, 2012 at 1:18 pm
They recover in parallel. Multiple spids are spawned to recover each of the user databases. User databases will only get recovered after the system ones are recovered.
You can see this...
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
August 13, 2012 at 1:01 pm
tilew-948340 (8/13/2012)
BTW, I reset the "database" list by doing a backup with the option "Back up to new media set and erase all existing backup sets",
So the list you...
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
August 13, 2012 at 12:56 pm
SQL 2008's the same, those instructions aren't 2012 specific
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
August 13, 2012 at 12:50 pm
Before you go and set every DB to simple recovery, make sure that simple recovery is acceptable for your disaster recovery and backup strategies...
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
August 13, 2012 at 12:04 pm
Viewing 15 posts - 17,176 through 17,190 (of 49,552 total)