Share via


How to: Add a Database Reference to a Database Project

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

If you are working on a database project in Solution Explorer, you can add a database reference. A database reference contains connection information and is saved as part of the project.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Working with Settings.

To add a database reference to a database project

  1. In Solution Explorer, right-click the Database References folder and choose New Database Reference from the shortcut menu.

  2. In the Add Database Reference dialog box, click the Add New Reference button.

  3. Follow the steps in How toHow to: Connect to a Database from Server Explorer.

    Your connection appears in Solution Explorer under the Database References and in Server Explorer under the Data Connections node.

See Also

Reference

Add/Modify Connection Dialog Box (General)

Concepts

Database Connections and Database References

Other Resources

Working with Database Projects