Step 11. Under Compression section, you can select the Compress backup from the drop down list as shown in the below snippet. Microsoft introduced Database Backup Compression Feature in SQL Server 2008 for Enterprise Edition. To know more about Backup Compression read the article titled Implement Backup Compression Feature In SQL Server 2008.
Step 12. To generate T-SQL Script for the database backup click Scripts and choose Script Action to your choice from the different options which are available as shown in the snippet below.
Step 13. Once the database is successfully backed up you will get a popup message similar to the one shown in below snippet.
How to Take Full Database Backup in SQL Server Using T-SQL Script
Below TSQL script can be used to take the Full Backup of AdventureWorks database. You need to set the path of the folder where you want to take the full back by modifying DatabaseBackupLocation.
DECLARE @BackupDatabaseName SYSNAME DECLARE @DatabaseBackupLocation NVARCHAR(120) SET @BackupDatabaseName = 'AdventureWorks' SET @DatabaseBackupLocation = 'C:\DBBackups\AdventureWorks.BAK' /* Database Backup Script Using Compression Feature of SQL Server 2008 */ BACKUP DATABASE @BackupDatabaseName TO DISK = @DatabaseBackupLocation WITH NOFORMAT, NOINIT, SKIP, NOREWIND, NOUNLOAD, COMPRESSION, STATS = 25 /* Verify the Database Backup File Once the Backup has completed successfully */ RESTORE VERIFYONLY FROM DISK = @DatabaseBackupLocation GO
This article explains the steps you need to follow to take a Full Database Back of an SQL Server Database.