다음을 통해 공유


IDtsConnectionService.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.

네임스페이스:  Microsoft.SqlServer.Dts.Runtime.Design
어셈블리:  Microsoft.SqlServer.Dts.Design(Microsoft.SqlServer.Dts.Design.dll)

구문

‘선언
Sub SetDataSourceID ( _
    connectionManager As ConnectionManager, _
    dataSourceId As String _
)
‘사용 방법
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
)

매개 변수

  • dataSourceId
    유형: System.String
    The GUID of the data source or data source view.

주의

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 연결 관리자 만들기.

참고 항목

참조

IDtsConnectionService 인터페이스

Microsoft.SqlServer.Dts.Runtime.Design 네임스페이스