另外一个比较讨厌人的地方是如何知道当前有几个用户联到数据库上,否则无法备份。 可以使用命令: use master select count(*) from master..sysprocesses where dbid=db_id('DBApp这里是数据库名')