Pregunta

is there an alternative way to save a database file other than using sqlceengine.compact method ? this is my code :

 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 doesn't work and i need an other way to save the database file

thanks in advence :)

¿Fue útil?

Solución

You can use System.IO.File.Copy

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top