PB中数据库恢复问题!

dushilangzi 2004-01-12 11:08:19
我想通过PB写个数据库恢复工具,不想用SQL advantage,但在程序执行时,当执行到这一句:"load database databasename from 'e:\back\databasename.dup'"
时提示:"LOAD DATABASE command not allowed within multi-statement transaction.",(在数据库master中执行,登录用户是sa),请问各位高手有什么解决的方法,谢谢!!
...全文
31 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
promark 2004-01-15
  • 打赏
  • 举报
回复
你还不如用pb调用一个bat文件来执行这些语句呢
dushilangzi 2004-01-14
  • 打赏
  • 举报
回复
试了以后上面的提示没了,但又出现下面的提示:"Backup Server session id is: 15. Use this value when executing the 'sp_volchanged' system stored procedure after fulfilling any volume change request from the Backup Server."
liliang800207 2004-01-14
  • 打赏
  • 举报
回复
试试上面的方法把
edisonwong 2004-01-14
  • 打赏
  • 举报
回复
SQLCA.AutoCommit = TRUE

752

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧