GO RECONFIGURE GO GO RECONFIGURE GO EXEC master..xp_cmdshell 'net use Z: \\192.168.11.1\192.168.11.4BACKUP "bst123456" /user:192.168.11.1\shuiniao' GO exec master..xp_cmdshell 'net use \\192.168.11.1\192.168.11.4BACKUP /del'…
--查询数据库状态 select name,user_access,user_access_desc, snapshot_isolation_state,snapshot_isolation_state_desc, is_read_committed_snapshot_on from sys.databases --设置数据库为SINGLE_USER模式,减少锁定时间 ALTER DATABASE dbname SET SINGLE_USER WITH ROLLBACK IM…