Condividi tramite


IDtsConnectionService.SetDataSourceID Method

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.

Spazio dei nomi: Microsoft.SqlServer.Dts.Runtime.Design
Assembly : Microsoft.SqlServer.Dts.Design (in microsoft.sqlserver.dts.design.dll)

Sintassi

'Dichiarazione
Sub SetDataSourceID ( _
    connectionManager As ConnectionManager, _
    dataSourceId As String _
)
void SetDataSourceID (
    ConnectionManager connectionManager,
    string dataSourceId
)
void SetDataSourceID (
    ConnectionManager^ connectionManager, 
    String^ dataSourceId
)
void SetDataSourceID (
    ConnectionManager connectionManager, 
    String dataSourceId
)
function SetDataSourceID (
    connectionManager : ConnectionManager, 
    dataSourceId : String
)

Parametri

  • connectionManager
    The connection manager that contains the reference to the dataSourceID.
  • dataSourceId
    The GUID of the data source or data source view.

Osservazioni

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 Creazione di gestioni connessioni.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

IDtsConnectionService Interface
IDtsConnectionService Members
Microsoft.SqlServer.Dts.Runtime.Design Namespace