Export (0) Print
Expand All

How to: Set Up Database Diagram Designer 

To use Database Diagram Designer it must first be set up by a member of the db_owner role (a role of Microsoft SQL Server databases) to control access to diagrams. For more information on how diagram ownership works see Understanding Database Diagram Ownership.

NoteNote

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 Visual Studio Settings.

To set up database diagramming

  1. Create a database connection in Server Explorer using a member of the db_owner role to log in. For steps see How to: Connect to a Database from Server Explorer.

  2. Expand the Database Diagrams node under the database connection.

  3. Select Yes when prompted if you want to set up database diagramming.

    NoteNote

    This will create the database diagram table and the stored procedures on the SQL Server database.

  4. Visual Studio 2005 will create the following objects on the SQL Server:

    1. Sysdiagrams table

    2. sp_alterdiagam stored procedure

    3. sp_creatediagram stored procedure

    4. sp_dropdiagram stored procedure

    5. sp_renamediagram stored procedure

    6. fn_diagramobjects function

    7. sp_helpdiagrams stored procedure

    8. sp_helpdiagramsdefinition stored procedure

    9. sp_upgraddiagrams stored procedure

See Also

Community Additions

ADD
Show:
© 2014 Microsoft