Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

File Groups advatages Expand / Collapse
Author
Message
Posted Thursday, March 21, 2013 12:48 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Today @ 1:38 AM
Points: 415, Visits: 1,585
hi,

We have a best practice in BOL that
"We need to have a separate File Group for the User data".

Is the below statement is true:

If there is any corruption while writing the data to PRIMARY File Group's files the database will not available to access. We can make the Database available by adding Secondary FG and placing the data to this Group.

please clarify.


Post #1433603
Posted Thursday, March 21, 2013 3:35 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 6:55 AM
Points: 42,840, Visits: 35,968
SQL* (3/21/2013)
If there is any corruption while writing the data to PRIMARY File Group's files the database will not available to access. We can make the Database available by adding Secondary FG and placing the data to this Group.


No, absolutely not. If there's corruption in the primary filegroup then you need to restore or repair the database, restore preferred in most cases.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1433661
Posted Friday, March 22, 2013 12:01 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Today @ 1:38 AM
Points: 415, Visits: 1,585
GilaMonster (3/21/2013)
SQL* (3/21/2013)
If there is any corruption while writing the data to PRIMARY File Group's files the database will not available to access. We can make the Database available by adding Secondary FG and placing the data to this Group.


No, absolutely not. If there's corruption in the primary filegroup then you need to restore or repair the database, restore preferred in most cases.


I think i have asked the question wrongly, here
Two cases
1. With only Primary File Group.
The user data will be written to the Primary File Group, if there is an error while writing, Is this database will be available?

2. With Primary and a Secondary.
If we write all the user data to secondary File Group, and if there is any error while writing the data, Is this database will be available?

Thanks


Post #1434140
Posted Friday, March 22, 2013 3:25 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 6:55 AM
Points: 42,840, Visits: 35,968
SQL* (3/22/2013)
The user data will be written to the Primary File Group, if there is an error while writing, Is this database will be available?


Maybe. Depends what the error is. If it's severe enough that SQL marks the database suspect, then no.

2. With Primary and a Secondary.
If we write all the user data to secondary File Group, and if there is any error while writing the data, Is this database will be available?


Maybe. Depends what the error is. If it's severe enough that SQL marks the database suspect, then no.

File groups aren't a protection against losing the database to corruption



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1434163
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse