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

How is Auditing Different From Change Data Capture in SQL Server?

What is the Difference Between UNION and UNION ALL in SQL Server ...

What is Deadlock in SQL Server ?

What are the Authentication Modes in SQL Server ?

What is the Difference Between VARCHAR and NVARCHAR in SQL Server ...