Méthode SetDataSourceID
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.
Espace de noms : Microsoft.SqlServer.Dts.Runtime.Design
Assembly : Microsoft.SqlServer.Dts.Design (en Microsoft.SqlServer.Dts.Design.dll)
Syntaxe
'Déclaration
Sub SetDataSourceID ( _
connectionManager As ConnectionManager, _
dataSourceId As String _
)
'Utilisation
Dim instance As IDtsConnectionService
Dim connectionManager As ConnectionManager
Dim dataSourceId As String
instance.SetDataSourceID(connectionManager, _
dataSourceId)
void SetDataSourceID(
ConnectionManager connectionManager,
string dataSourceId
)
void SetDataSourceID(
ConnectionManager^ connectionManager,
String^ dataSourceId
)
abstract SetDataSourceID :
connectionManager:ConnectionManager *
dataSourceId:string -> unit
function SetDataSourceID(
connectionManager : ConnectionManager,
dataSourceId : String
)
Paramètres
- connectionManager
Type : Microsoft.SqlServer.Dts.Runtime. . :: . .ConnectionManager
The connection manager that contains the reference to the dataSourceID.
- dataSourceId
Type : System. . :: . .String
The GUID of the data source or data source view.
Notes
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 Ajout de gestionnaires de connexions.
Voir aussi