设置密码保护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';