远程sql 数据库 备份到当地ACess 请教几个问题?Dim t As String
Dim c As Integer = DataTables.Count
Dim i As Integer = 0
For Each dt As DataTable In DataTables
Dim ex As New Exporter
ex.FilePath = ProjectPath & "backup\" & Today & ".mdb"
ex.SourceTableName = dt.Name
i= i + 1
StatusBar.Message3= "正在备份" & dt.name & i &"/" & c
StatusBar.ProgressBar.Visible =True
StatusBar.ProgressBar.Value = i/c
t = dt.LoadFilter
If t <> "" Then
dt.LoadFilter= ""
dt.load
ex.Export()
dt.LoadFilter = t
dt.load
Else
ex.Export()
End If
Next
1. 上面的备份 一天只能一次,否则要出错 能不能做到一天几次
2.如果数据较多 ,耗时比较长,能不能做个等待提示