文件名称:asp实现sql的备份与恢复
文件大小:56KB
文件格式:PDF
更新时间:2024-01-23 00:38:11
AS asp response
1、备份 <% SQL=”backup database 数据库名 to disk='”&Server.MapPath(“backup”)&”\”&”backuptext.dat”&”‘” set cnn=Server.createobject(“adodb.connection”) cnn.open “driver={SQL Server};Server=服务器名;uid=sa;pwd=” cnn.execute SQL on error resume next if err<>0 then response.write “错误:”&err.Descripting else response