User Instances / AttachDBFile
vivus
Posts: 6
will the new 4.0 beta support Syncing with user instances and attachDBFile?
is there an rss feed or email list when the new 4.0 is released and will it be compatible with the 2.0 framework?
Deepest Regards,
Michael
is there an rss feed or email list when the new 4.0 is released and will it be compatible with the 2.0 framework?
Deepest Regards,
Michael
Comments
All of the programs in SQL Bundle 4.0 are compatible with .NET Framework 2.0. They require Framework 1.1, which is the Framework version they're targeted at.
This saves you the additional step of attaching the file using the Management Studio before using SQL Compare/Data Compare to compare the database in the file.
Public Sub SourceDatabase(ByVal serverName As String, ByVal databaseName As String, ByVal userName As String, ByVal password As String)
Dim _connectionProperties As Engine.ConnectionProperties
Dim _combinedServerName As String
m_db1 = New Engine.Database
If FileIO.FileSystem.FileExists(databaseName) Then
_combinedServerName = String.Concat(serverName, "; AttachDBFileName=", databaseName)
databaseName = "Source"
Else
_combinedServerName = serverName
End If
If String.IsNullOrEmpty(userName) Then
_connectionProperties = New Engine.ConnectionProperties(_combinedServerName, databaseName)
_connectionProperties.IntegratedSecurity = True
Else
_connectionProperties = New Engine.ConnectionProperties(serverName, databaseName, userName, password)
End If
m_db1.Register(_connectionProperties, m_engineOptions)
End Sub