2

it's theoretical question. If i have a window server 2012 r2 which have mssql server installed. I add role windows server backup.

So can restore the database which was backuped by windows server backup. How? just attach mdf and ldf files from backup?

P.S. I know that MSSQL databases must be backuped up by there internal utilites and the Windows server backup is not a good for this. But i saw in mssql logs that windows server backup uses vss for sql too and it may be consistent.

thanks!

2

Review the following answer:

How can I backup an SQL Server database using Windows Server Backup?

If you wish to backup your SQL server, it is recommended that you use commercial software (for example, Redgate or Idera) or - if you wish to stay free-ish - use Ola's scripts:

https://ola.hallengren.com/

| improve this answer | |
  • 1
    Thank you! good answer! i test one mssql base and after attach it managment studio its online. – LimpTeaM Oct 31 '18 at 12:48
4

What George said. I just wanted to add that:

Theoretically, you can indeed restore SQL Server from Windows Server Backup. (You would detach the old database, rename the old files, put the .mdf and .ldf back in the right places and use the attach feature.) It's not generally recommended, however (unless you've had some horrible disaster that took out your actual SQL backups). This is because uncommitted transactions might not be on disk yet, and also because log backups do some additional housekeeping for databases in Full Recovery.

How Bad [TM] this is depends on your database. If your database is basically the brains of a piece of commercial software that you never interact with on a SQL level, this is considerably Less Bad than if your database is used for banking or financial data with a high transaction volume, for example.

Personally, even when using SQL Express or Windows Internal Database I back up with actual SQL backups rather than relying on Windows Server Backup. (I use task scheduler to kick off Ola Hallengren's scripts with SQLCMD.)

(In my opinion, there's nothing wrong with the built-in SQL Server backup commands. Many people find commercial GUIs or other people's scripts easier to use, however.)

| improve this answer | |
  • 1
    thank you! yes, i'm wondering about horrible disaster not for single backup. – LimpTeaM Oct 31 '18 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.