Skip to content

Commit

Permalink
add function to link a table/view using the connectionstring of an ex…
Browse files Browse the repository at this point in the history
…isting table/view
  • Loading branch information
RaoulJacobs committed Mar 24, 2022
1 parent d924c1c commit d97d9ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions M_omSSMAAConnector.def
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ Dim strDatabaseName As String
Debug.Print Now
End Function

Public Sub LinkTableViewUsingSSMA(existingTableName As String, toLinkName As String)
Dim cn As String
cn = GetConnectionStringByProperty(existingTableName)
AttachTable cn, toLinkName, toLinkName
End Sub

Sub UpdateSSMAConnectionString(Optional Group As String = "", Optional ConnectionType As ConnectionTypes = ConnectionTypes.Default)
Dim rs As New ADODB.Recordset
Dim cmd As New ADODB.Command
Expand Down

0 comments on commit d97d9ce

Please sign in to comment.