存储过程的SQL代码: ALTER PROCEDURE USP_DBBackup ), --存储目录. ) --存储数据库名. AS SET NOCOUNT ON ) select @name = rtrim(ltrim(@name)) if exists (SELECT Name FROM Master..SysDatabases where name = 'PersonnelManagementSystem') --寻找指定的数据库. set @name= 'PersonnelManagem…