engine.Compact("Data Source = " & destinationDBName & ";Password =" & encryptedPassword)
Public Sub GlobalFunctions_Encrypt_DB(ByVal sourceDBName As String, ByVal destinationDBName As String, ByVal encryptedPassword As String) Implements ICommonDAO.GlobalFunctions_Encrypt_DB Dim engine As SqlCeEngine engine = New SqlCeEngine("Data Source = " & sourceDBName) ' Compact the database and add password protection engine.Compact("Data Source = " & destinationDBName & ";Password =" & encryptedPassword) '***This line errors engine.Dispose() End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)