SQL Server DBA Tutorial 4 - How to Manually Take Full Backup of a Database in SQL Server

preview_player
Показать описание
*****************************************************************************************
* How to Manually Take Full Backup of a Database in SQL Server *
*****************************************************************************************
We will be using two ways Manually Take Full Backup of a Database
1. Using SQL Server management studio graphic user interface GUI Version
2. Using T-SQL script

/** Backup Script **/

BACKUP DATABASE [DVDRental]
WITH RETAINDAYS = 10, NOFORMAT, NOINIT,
NAME = N'DVDRental-Full Database Backup',
SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO

/** Backupset Varification**/
declare @backupSetId as int
select @backupSetId = position from msdb..backupset where database_name=N'DVDRental'
and backup_set_id=(select max(backup_set_id) from msdb..backupset where database_name=N'DVDRental' )
if @backupSetId is null begin raiserror(N'Verify failed. Backup information for database ''DVDRentals'' not found.', 16, 1) end
WITH FILE = @backupSetId, NOUNLOAD, NOREWIND
GO

Note : Flow the Process shown in video.

😉Subscribe and like for more videos:
💛Don't forget to, 💘Follow, 💝Like, 💖Share 💙&, Comment

Tutorial Link :

Thanks & Regards,
Chitt Ranjan Mahto "Chirag"
_________________________________________________________________________________________
Note: All scripts used in this demo will be available in our website.
Link will be available in description.

#DBATutorial
#DBATutorialLearning
#DBAEducation
#DBATutorialFree
#DatabaseTutorial
#SQLServerDatabaseTutorial
#SQLServerDBATutorial
#MicrosoftSQLServerDatabaseTutorial
#ChiragsDBATutorial
#ChiragsDatabaseTutorial
#ChiragsSQLServerDatabaseTutorial
#ChiragsSQLServerDBATutorial
#ChiragsMicrosoftSQLServerDatabaseTutorial
#CreateDatabaseinSQLServer
#CreateDatabasewithT-SQL
#chiragstutorial
#databasetutorial
#sqlserver
#sqlservertutorial
#sqlserver
#sqlservermanagementstudio
#sql_server
#sqlservertutorial
#chiragstutorial
#databasetutorial
#sqlqueries
#sqldba
#database
#databasemanagement
Рекомендации по теме