I am trying to create a physical data model of an SQL Server Database. However I only want to use the Views not the tables. Is this possible?

Hi Experts,

I have to quickly create a physical data model of SQL Server database. However when I use the SSMS > Database Diagrams > New Database Diagram > I am only able to select tables.  However all the information that I have model is contained only in views.   I am not able to select the views?

Is there a way to do this? Otherwise is there some free alternatives? I also use visual studio but only the business Intelligence version so I don't have the option to use the data modally tool there I believe?

Many thanks,
bruskhickoryAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
I am not able to select the views?
Not in database diagrams since it's used to create and view relationships between tables only.

Is there a way to do this?
As far as I know, no. You can't relate views as you relate tables. Maybe what you are trying to do is a data dictionary?
0
JestersGrindCommented:
The database diagram in SQL Server Management Studio is tables only and for a good reason.  One of the purposes of a diagram is to show the relationships between tables based on the primary key/foreign key relationships.  Views do not have those types of relationships, only the underlying tables do.  

As far as data modelling tools...  Microsoft Visio is pretty good if you have it.  You can add views.  Oracle has a pretty good one too.  
http://www.oracle.com/technetwork/developer-tools/datamodeler/overview/index.html

Hope this helps,

Greg
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Anthony PerkinsCommented:
Alternatively copy the database and create tables from the Views.  You can then use the SQL Server Diagram.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB Reporting Tools

From novice to tech pro — start learning today.