IDtsConnectionService.SetDataSourceID(ConnectionManager, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows the connection string for a run-time connection manager to be in synchronization with the connection string of a Data Source object, if both are in the same project. This synchronization is done whenever a package is opened in the designer.
public:
void SetDataSourceID(Microsoft::SqlServer::Dts::Runtime::ConnectionManager ^ connectionManager, System::String ^ dataSourceId);
public void SetDataSourceID (Microsoft.SqlServer.Dts.Runtime.ConnectionManager connectionManager, string dataSourceId);
abstract member SetDataSourceID : Microsoft.SqlServer.Dts.Runtime.ConnectionManager * string -> unit
Public Sub SetDataSourceID (connectionManager As ConnectionManager, dataSourceId As String)
Parameters
- connectionManager
- ConnectionManager
The connection manager that contains the reference to the dataSourceId
.
- dataSourceId
- String
The GUID of the data source or data source view.
Remarks
This method is used to dereference into the DataSources
collection of the AMO database object. Each SSIS project has a corresponding AMO database object, so that the data source and data source views have an established storage location. For more information, see Create Connection Managers.