简体   繁体   中英

how to take backup of existing database in sql server and save as a script in TFS

How to take a backup of existing Database in Sql server and Save it as script in local or TFS? I have 3 DB's under Production server to take backup

The following Query generates BackUp .bak file of database.

BACKUP DATABASE 'DatabaseName'
TO DISK = 'D:\FileName.bak'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM