Provides a service that can be used by various user interfaces to create new connections.
The following tables list the members exposed by the IDtsConnectionService type.
Public Properties
| 名称 | Description | |
|---|---|---|
| .gif) | IsDesignerOnline | Gets or sets a Boolean indicating whether the designer is working in an offline mode or online mode. | 
顶部
Public Methods
| 名称 | Description | |
|---|---|---|
| .gif) | AddConnectionToPackage | Adds existing connections to a package designer so that the designer is aware of a new connection manager | 
| .gif) | CreateConnection | Overloaded. Creates a new connection. | 
| .gif) | CreateConnectionFromDataSource | Displays a list of existing data sources and allows users to create connection managers based on data sources. | 
| .gif) | EditConnection | Overloaded. Edits an existing connection. | 
| .gif) | GetAMOObject | Retrieves the AMO object for an OLAP connection. | 
| .gif) | GetConnections | Retrieves all connection managers in the current package. | 
| .gif) | GetConnectionsOfType | Returns all connections of the specified type found in the current package. | 
| .gif) | GetDataSource | Retrieves the DataSource object for a connection. | 
| .gif) | 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. | 
| .gif) | SetReferencedProject | Sets the referenced project to a connection manager. | 
顶部
请参阅
参考
IDtsConnectionService Interface
Microsoft.SqlServer.Dts.Runtime.Design Namespace