How to: Add or Delete a Connection Manager in a Package

Integration Services includes a variety of connection managers for connecting to different data sources, such as relational databases, Analysis Services databases, and files in CSV and XML formats.

The following procedures apply to all types of connection managers and describe how to do the following tasks:

  • Use a wizard to add a connection manager during package creation.

  • Add a connection manager to an existing package.

  • Delete a connection manager from a package.

To add a connection manager when creating a package

  • Use either the the SQL Server Import and Export Wizard or Integration Services Connection Project Wizard.

    In addition to creating and configuring a connection manager, these wizards also help you create and configure the sources and destinations that use the connection manager. For more information, see Creating a Package by Running a Wizard.

To add a connection manager to an existing package

  1. In Business Intelligence Development Studio, open the Integration Services project that contains the package you want.

  2. In Solution Explorer, double-click the package to open it

  3. In SSIS Designer, click the Control Flow tab, the Data Flow tab, or the Event Handler tab to make the Connection Managers area available.

  4. Right-click anywhere in the Connection Managers area, and then do one of the following:

    • Click the connection manager type to add to the package.

      —or—

    • If the type that you want to add is not listed, click New Connection to open the Add SSIS Connection Manager dialog box, select a connection manager type, and then click OK.

    The custom dialog box for the selected connection manager type opens. For more information about connection manager types and the options that are available, see the following options table.

    Connection manager

    Options

    ADO Connection Manager

    Configure OLE DB Connection Manager

    ADO.NET Connection Manager

    Configure ADO.NET Connection Manager

    Analysis Services Connection Manager

    Add Analysis Services Connection Manager

    Excel Connection Manager

    Excel Connection Manager Editor

    File Connection Manager

    File Connection Manager Editor

    Multiple Files Connection Manager

    Add File Connection Manager

    Flat File Connection Manager

    Flat File Connection Manager Editor (General Page)

    Flat File Connection Manager Editor (Columns Page)

    Flat File Connection Manager Editor (Advanced Page)

    Flat File Connection Manager Editor (Preview Page)

    Multiple Flat Files Connection Manager

    Multiple Flat Files Connection Manager Editor (General Page)

    Multiple Flat Files Connection Manager Editor (Columns Page)

    Multiple Flat Files Connection Manager Editor (Advanced Page)

    Multiple Flat Files Connection Manager Editor (Preview Page)

    FTP Connection Manager

    FTP Connection Manager Editor

    HTTP Connection Manager

    HTTP Connection Manager Editor (Server Page)

    HTTP Connection Manager Editor (Proxy Page)

    MSMQ Connection Manager

    MSMQ Connection Manager Editor

    ODBC Connection Manager

    Configure ODBC Connection Manager

    OLE DB Connection Manager

    Configure OLE DB Connection Manager

    SMO Connection Manager

    SMO Connection Manager Editor

    SMTP Connection Manager

    SMTP Connection Manager Editor

    SQL Server Compact Edition Connection Manager

    SQL Server Compact Edition Connection Manager Editor (Connection Page)

    SQL Server Compact Edition Connection Manager Editor (All Page)

    WMI Connection Manager

    WMI Connection Manager Editor

    The Connection Managers area lists the added connection manager.

  5. Optionally, right-click the connection manager, click Rename, and then modify the default name of the connection manager.

  6. To save the updated package, click Save Selected Item on the File menu.

To delete a connection manager from a package

  1. In Business Intelligence Development Studio, open the Integration Services project that contains the package you want.

  2. In Solution Explorer, double-click the package to open it.

  3. In SSIS Designer, click the Control Flow tab, the Data Flow tab, or the Event Handler tab to make the Connection Managers area available.

  4. Right-click the connection manager that you want to delete, and then click Delete.

    If you delete a connection manager that a package element, such as an Execute SQL task or an OLE DB source, uses, you will experience the following results:

    • An error icon appears on the package element that used the deleted connection manager.

    • The package fails to validate.

    • The package cannot be run.

    If you delete a connection manager that is based on a data source object, the data source object is not deleted.

  5. To save the updated package, click Save Selected Items on the File menu.