Creating a Database Project

See Also

You can create a database project when you want to create, modify, or delete database objects using the Database Designer, or create and execute queries using the Query Designer. For more information about using these design tools, see the Database Designer and Query Designer topics.

To create a database project in Microsoft® Visual InterDev™ and Visual J++™

  1. From the File menu, choose New Project.

  2. On the New tab, click the Visual Studio folder

  3. Click the Database Projects folder.

  4. Select New Database Project.

  5. In the Name box, type a name for this database project. This project will be stored in the location shown in the Location box. If you want to store your project in a different location, type or choose a new location in the Location box.

  6. To create the new database project in a new solution, select Close current solution.

    -or-

    To add the new database project to the current solution, select Add to current solution.

  7. Choose OK.

  8. From the Select Data Source dialog box, select a data connection. For details, see Adding a Data Connection to a Database Project.

After you add a data connection, the database project is created in the location you specified and the Data View window is added to the project workspace. The Data View window displays the database objects for the database associated with this data connection. The database project is displayed in the Project Explorer.

To create a database project in Microsoft® Visual C++®

  1. From the File menu, choose New.

  2. In the New dialog box, choose the Projects tab.

  3. Select Database Project.

  4. In the Project Name box, type a name for this database project. This project will be stored in the location shown in the Location box. If you want to store your project in a different location, type or choose a new location in the Location box.

  5. From the Select Data Source dialog box, select a data connection. For details, see Adding a Data Connection to a Database Project.

After you add a data connection, the database project is created with a .dsp extension in the location you specified and the Data View tab is added to the project workspace. The database project is displayed in the FileView tab.