数据库备份文件太大(sqlserver2000)

haoranqifan 2003-08-21 09:11:08
超市系统,sql2000数据库,每天十几万条数据,备份文件已经达到800多兆,请教高手能否用pb编程备份,采用压缩技术解决这个问题?最好有原代码。
...全文
186 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
polugen 2003-08-22
  • 打赏
  • 举报
回复
增量备份
pbtech 2003-08-21
  • 打赏
  • 举报
回复
integer bttn
long i
string fn1
boolean oldfile

oldfile=true
if not fileexists(sle_filename.text) then
bttn=messagebox("系统提示","指定文件不存在,是否新建备份文件",Question!,YesNo!,2)
if bttn=2 then
return
end if
oldfile=false
end if

backupcmmd=isql+" -S "+servername+" -U "+userid+" -P "+dbpass+' -d master -Q"BACKUP DATABASE '+database+' TO DISK= ~''+sle_filename.text+'~' with init "'

i=run(backupcmmd,minimized!)
if i=1 then
messagebox("系统信息","服务器已经开始执行备份操作")
end if
pbtech 2003-08-21
  • 打赏
  • 举报
回复
isql 可以生成备份
再调用压缩软件,压缩生成的备份

752

社区成员

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

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