設置密碼保護SqlServer數據庫備份文件!
備份SqlServer數據庫
Backup Database [數據庫] To disk='c:\mysql'+ replace(replace(replace(replace(CONVERT(varchar, getdate(), 121),'-',''),' ',''),':',''),'.','') +'.bak' With Password = '123',init;
恢復SqlServer數據庫
Restore Database [數據庫] From disk=數據庫備份文件地址 With Password = '123';