Link to home
Start Free TrialLog in
Avatar of paultran00
paultran00Flag for United States of America

asked on

How do I get a physical data model from a SQL SERVER 2016 database?

Hi,

I have a SQL SERVER 2016 database.   How do I get a physical data model?  

I have Visio 2016...doesn't this have the ability to import from SQL SERVER?

When I tried to use SQL SERVER to create the DATA BASE DIAGRAMS, I get the error "You are not logged on as the database owner or system administrator. ... Certain edits require CREATE TABLE permission.
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of paultran00

ASKER

thanks, if the tables have pk and fk, will it list them too?
The structure scripting in SSMS will list PKs and FKs.

INFORMATION_SCHEMA views also contain this information. You may look at
CONSTRAINT_COLUMN_USAGE
CONSTRAINT_TABLE_USAGE
REFERENTIAL_CONSTRAINTS
etc.

All these views are listed in SSMS under Views - System Views.