SQL Server 2005 Back TSQL Basics (Reblog)
Most of the people, if not all, who work around the SQL Server know how to backup their databases by heart. They can even do the task in their sleep. Some may find this article useful, though.
What we’re going to do here is do the 3 backup types: Full, Differential, and Transaction Log Backups.
Here’s how to backup a SQL Server Database (suppose we’re backing up the AdventureWorks Database):
1. Create a directory: C:\myBackUpDir (you may want to create this in a separate physical disk)
2. Open SSMS, and connect to the instance. Open a new query.
3. Execute a Full Backup:
BACKUP DATABASE AdventureWorks TO DISK = ‘ C:\myBackUpDir\ADVWRKS.BAK’
4. Since we also want to create a Differential backup, make any change to one of the tables in the AdventureWorks Database. Next, we want to backup the Transaction Log and capture the change that has been made. Execute:
View original post 115 more words