【发布时间】:2014-03-06 15:18:39
【问题描述】:
除了使用 sqlceengine.compact 方法之外,还有另一种保存数据库文件的方法吗? 这是我的代码:
Dim engine As New SqlCeEngine("Data Source = " + Path + databasename)
If Directory.Exists("\" & otherPath) Then
If File.Exists("\" & otherPath & "\" databasename) Then
File.Delete("\" & otherPath & "\" databasename)
End If
engine.Compact("Data Source= \" & otherPath & "\" databasename)
end if ...
compact 不起作用,我需要另一种方法来保存数据库文件
提前感谢:)
【问题讨论】:
标签: sql vb.net sql-server-ce