Making a Backup of MS SQL Database With Query

If we want to back up a database with the query method in MS SQL Server, the following path is followed.

BACKUP DATABASE {Database Name} TO DISK = {Path of .bak File to Backup}

An example of its use would be as follows..

BACKUP DATABASE OurDB TO DISK='c:\OurDB.bak'


You May Interest

What is a Control Flow Inside SSIS ?

What is CTE in SQL Server ?

List of Table Columns Used in Any View in MS SQL

MS SQL List of Records in All Tables

What is Resource Governor in SQL Server ?