SQL BACKUP with Query

We can use the SQL query to take backup from SQL server.
Use the below query to do that.

Syntax:

BACKUP DATABASE <Database Name> TO DISK = '<Destination path Here>' 


Sample:

BACKUP DATABASE MYDATABASE TO DISK = 'D:\MYDATABASE.BAK'

Comments

Popular posts from this blog

BDD - Acceptance Test Driven Development

Angular JS – Part 2

.Net Collections