2024年6月21日发(作者:)
ASP中怎么实现SQL数据库备份、恢复!
1、ASP中怎么实现SQL数据库备份、恢复!
答:asp在线备份sql server数据库:
1、备份
<%
SQL="backup database 数据库名
disk='"&h("backup")&""&""&"'"
set cnn=object("tion")
"driver={SQL Server};Server=服务器名;uid=sa;pwd="
e SQL
on error resume next
if err<>0 then
"错误:"&pting
else
to
"数据备份成功!"
end if
%>
2、恢复
<%
SQL="Restore database 数据库名
disk='"&h("backup")&""&""&"'"
set cnn=object("tion")
"driver={SQL Server};Server=服务器名;uid=sa;pwd="
e SQL
on error resume next
if err<>0 then
"错误:"&pting
else
from
发布者:admin,转转请注明出处:http://www.yc00.com/news/1718914770a2753517.html
评论列表(0条)