Backing up a complete database

This script will take a full database backup to disk

BACKUP DATABASE AdventureWorks2012 
 TO DISK = 'T:\Backups\AdvWorksData2015.bak'
   WITH FORMAT;
GO

Although there are other options available in the backup database command, this one is the simplest.
Nothing geeky in the new year post :)

Comments

Popular posts from this blog

VS 2012: No exports were found that match the constraint : ContractName

How to Tweak the New Multi-Monitor Taskbar in Windows 8