ASP中怎么实现SQL数据库备份

ASP中怎么实现SQL数据库备份


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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信