Showing posts with label diagrams. Show all posts
Showing posts with label diagrams. Show all posts

Friday, March 23, 2012

How to create Database Diagrams in SQL Server Management Studio?

Hi:

I installed SQL Server 2005 onto Vista RTM.

When launched SQL Server Mangement Studio -> Databases -> choose a database and expand.

Right click on top of "Database Diagrams" node, only options I've got are:

1. Working with SQL Server 2000 Diagram

2. Refresh.

Wondering did I missing something on my system in order to make database diagrams to work?

Thanks

Tommy

Only SQL Server 2005 with SP2 will be supported on Vista and Longhorn. You can install the latest SP2 CTP to see if your issue is fixed or not. See http://www.microsoft.com/sql/howtobuy/sqlonvista.mspx for more info.

You can download SP2 CTP from here: http://support.microsoft.com/kb/913089/.

|||I have the same problem as mentioned above, only I have SQL Server 2005 installed under XP. I right-click any Database Diagrams node and the only options are 'Working with SQL Server 2000 diagrams' and 'Refresh'. No option for creating a new diagram. I have installed SP2 for SQL Server 2005 to no avail. Does anyone have a solution for this problem?

How to create Database Diagrams in SQL Server Management Studio?

Hi:

I installed SQL Server 2005 onto Vista RTM.

When launched SQL Server Mangement Studio -> Databases -> choose a database and expand.

Right click on top of "Database Diagrams" node, only options I've got are:

1. Working with SQL Server 2000 Diagram

2. Refresh.

Wondering did I missing something on my system in order to make database diagrams to work?

Thanks

Tommy

Only SQL Server 2005 with SP2 will be supported on Vista and Longhorn. You can install the latest SP2 CTP to see if your issue is fixed or not. See http://www.microsoft.com/sql/howtobuy/sqlonvista.mspx for more info.

You can download SP2 CTP from here: http://support.microsoft.com/kb/913089/.

|||I have the same problem as mentioned above, only I have SQL Server 2005 installed under XP. I right-click any Database Diagrams node and the only options are 'Working with SQL Server 2000 diagrams' and 'Refresh'. No option for creating a new diagram. I have installed SP2 for SQL Server 2005 to no avail. Does anyone have a solution for this problem?

Sunday, February 19, 2012

How to copy SQL Diagrams

How can I copy SQL diagram from one source to other destination?
I would appreciate if you let me know.
Thanks.Here are my assumptions:
1. both destination database schema and source database schema are
identical.
2. that your destination database is missing diagram.
3. source database have diagram and you want to move the diagram to
destination database.
If my assumptions are true, then you can manually add all the user tables to
diagram on destination database, Just recreate diagram!
> Thanks.
> "Kevin" wrote:
>|||What do you mean by transfer the diagram.
Do you mean just create brand new one at the different database?
I would appreciate if you let me know.
Thanks.
"Kevin" wrote:
> The easiest method to transfer your diagram is to do a complete backup and
> restore onto the destination database. If you don’t have the luxury of
> performing a complete backup and restore, then you’ll have to do a very
> difficult task to transfer the diagram.
> "Justin Doh" wrote:
>|||The easiest method to transfer your diagram is to do a complete backup and
restore onto the destination database. If you don’t have the luxury of
performing a complete backup and restore, then you’ll have to do a very
difficult task to transfer the diagram.
"Justin Doh" wrote:

> How can I copy SQL diagram from one source to other destination?
> I would appreciate if you let me know.
> Thanks.
>|||If you donot want to take the back up of source database, for getting the
database diagram, another way is, use the DTS with import/export wizard and
DTS the (copy) the DTProperties tables of Source database into Destination
database.
After this DTS process completes, check for the DB diagram in the
destination database thru enterprise manager.
Hope this helps
Thanks,
Siva
"Justin Doh" wrote:

> How can I copy SQL diagram from one source to other destination?
> I would appreciate if you let me know.
> Thanks.
>|||Just check my article on subject "Copying Database Diagrams" >>
http://www.dotnetforce.com/Content.aspx?t=a&n=208
Best Regards
Vadivel
http://vadivel.blogspot.com
http://thinkingms.com/vadivel
"Justin Doh" wrote:

> How can I copy SQL diagram from one source to other destination?
> I would appreciate if you let me know.
> Thanks.
>|||Hi SivaCh,
Thank you for your advice.
Where do I find the DTProperties tables in the DTS package?
I know it is there in the server, but how should I go about selecting that
particular
system table?
I would appreciate if you let me know.
Thanks.
Justin
"SivaCh" wrote:
> If you donot want to take the back up of source database, for getting the
> database diagram, another way is, use the DTS with import/export wizard an
d
> DTS the (copy) the DTProperties tables of Source database into Destination
> database.
> After this DTS process completes, check for the DB diagram in the
> destination database thru enterprise manager.
> Hope this helps
> Thanks,
> Siva
> "Justin Doh" wrote:
>|||Justin,
You can try the following. But this is a tip from another person
(Unfortunately I can't find out the original author) so I won't take credit
on this.
How to transfer database diagrams to a different database?
Database diagrams are stored in the 'dtproperties' table within the
database. So, database diagrams can be transferred to a different database,
by transferring the contents of this table.
For example , run the following query to transfer the diagram named
'MyTableDesign' from 'pubs' database to 'northwind':
INSERT northwind..dtproperties
SELECT objectid, property, value, uvalue, lvalue, version
FROM pubs..dtproperties
WHERE objectid =
(
SELECT objectid
FROM pubs..dtproperties
WHERE value='MyTableDesign'
)
Make sure, the tables referenced by these diagrams already exist in the
target database, or else these diagrams won't show up in the target database
.
If the target database already has a diagram with the same 'objectid', you
will see unpredictable results, when Enterprise Manager displays the
diagrams. In that case, you might want to explicitly specify a unique value
to the 'objectid' column while transferring rows from the source
'dtproperties' table.
Hope this help.
Dennis Lam
"Justin Doh" wrote:

> How can I copy SQL diagram from one source to other destination?
> I would appreciate if you let me know.
> Thanks.
>

How to copy diagrams from one db to another

hi all;
is it possible to copy diagram in one database to another database? while
there structure of both dbs are same.
I have not found any option in DTS top copy diagrams only.
any suggestion? thanks in advance.
ansari
Hi,
All the diagrams for a database will be stored in table dtproperties. So you
could load the destination database 'dtproperties table' with source
contrents.
See the links.
http://groups.google.co.in/groups?q=...o+a+new+server
&hl=en&lr=&ie=UTF-8&selm=39A5A042.38D3D1FF%40ietsmet.nl&rnum=8
http://www.mssqlserver.com/faq/transfer-diagrams.asp
http://support.microsoft.com/default...;en-us;Q320125
Thanks
Hari
MCDBA
"M.M Ansari" <mudasar_ansari@.hotmail.com> wrote in message
news:u66VLGtcEHA.2268@.TK2MSFTNGP12.phx.gbl...
> hi all;
> is it possible to copy diagram in one database to another database? while
> there structure of both dbs are same.
> I have not found any option in DTS top copy diagrams only.
> any suggestion? thanks in advance.
> ansari
>
>
|||thanks hari
ansari
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:uE2R5atcEHA.4092@.TK2MSFTNGP11.phx.gbl...
> Hi,
> All the diagrams for a database will be stored in table dtproperties. So
you
> could load the destination database 'dtproperties table' with source
> contrents.
> See the links.
>
http://groups.google.co.in/groups?q=...o+a+new+server[vbcol=seagreen]
> &hl=en&lr=&ie=UTF-8&selm=39A5A042.38D3D1FF%40ietsmet.nl&rnum=8
> http://www.mssqlserver.com/faq/transfer-diagrams.asp
> http://support.microsoft.com/default...;en-us;Q320125
>
> Thanks
> Hari
> MCDBA
> "M.M Ansari" <mudasar_ansari@.hotmail.com> wrote in message
> news:u66VLGtcEHA.2268@.TK2MSFTNGP12.phx.gbl...
while
>

How to copy diagrams from one db to another

hi all;
is it possible to copy diagram in one database to another database? while
there structure of both dbs are same.
I have not found any option in DTS top copy diagrams only.
any suggestion? thanks in advance.
ansariHi,
All the diagrams for a database will be stored in table dtproperties. So you
could load the destination database 'dtproperties table' with source
contrents.
See the links.
http://groups.google.co.in/groups? ...w+serv
er
&hl=en&lr=&ie=UTF-8&selm=39A5A042.38D3D1FF%40ietsmet.nl&rnum=8
http://www.mssqlserver.com/faq/transfer-diagrams.asp
http://support.microsoft.com/defaul...b;en-us;Q320125
Thanks
Hari
MCDBA
"M.M Ansari" <mudasar_ansari@.hotmail.com> wrote in message
news:u66VLGtcEHA.2268@.TK2MSFTNGP12.phx.gbl...
> hi all;
> is it possible to copy diagram in one database to another database? while
> there structure of both dbs are same.
> I have not found any option in DTS top copy diagrams only.
> any suggestion? thanks in advance.
> ansari
>
>|||thanks hari
ansari
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:uE2R5atcEHA.4092@.TK2MSFTNGP11.phx.gbl...
> Hi,
> All the diagrams for a database will be stored in table dtproperties. So
you
> could load the destination database 'dtproperties table' with source
> contrents.
> See the links.
>
http://groups.google.co.in/groups? ...w+serv
er
> &hl=en&lr=&ie=UTF-8&selm=39A5A042.38D3D1FF%40ietsmet.nl&rnum=8
> http://www.mssqlserver.com/faq/transfer-diagrams.asp
> http://support.microsoft.com/defaul...b;en-us;Q320125
>
> Thanks
> Hari
> MCDBA
> "M.M Ansari" <mudasar_ansari@.hotmail.com> wrote in message
> news:u66VLGtcEHA.2268@.TK2MSFTNGP12.phx.gbl...
while[vbcol=seagreen]
>

How to copy diagrams from one db to another

hi all;
is it possible to copy diagram in one database to another database? while
there structure of both dbs are same.
I have not found any option in DTS top copy diagrams only.
any suggestion? thanks in advance.
ansariHi,
All the diagrams for a database will be stored in table dtproperties. So you
could load the destination database 'dtproperties table' with source
contrents.
See the links.
http://groups.google.co.in/groups?q=copy+sql+server+diagrams+to+a+new+server
&hl=en&lr=&ie=UTF-8&selm=39A5A042.38D3D1FF%40ietsmet.nl&rnum=8
http://www.mssqlserver.com/faq/transfer-diagrams.asp
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q320125
Thanks
Hari
MCDBA
"M.M Ansari" <mudasar_ansari@.hotmail.com> wrote in message
news:u66VLGtcEHA.2268@.TK2MSFTNGP12.phx.gbl...
> hi all;
> is it possible to copy diagram in one database to another database? while
> there structure of both dbs are same.
> I have not found any option in DTS top copy diagrams only.
> any suggestion? thanks in advance.
> ansari
>
>|||thanks hari
ansari
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:uE2R5atcEHA.4092@.TK2MSFTNGP11.phx.gbl...
> Hi,
> All the diagrams for a database will be stored in table dtproperties. So
you
> could load the destination database 'dtproperties table' with source
> contrents.
> See the links.
>
http://groups.google.co.in/groups?q=copy+sql+server+diagrams+to+a+new+server
> &hl=en&lr=&ie=UTF-8&selm=39A5A042.38D3D1FF%40ietsmet.nl&rnum=8
> http://www.mssqlserver.com/faq/transfer-diagrams.asp
> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q320125
>
> Thanks
> Hari
> MCDBA
> "M.M Ansari" <mudasar_ansari@.hotmail.com> wrote in message
> news:u66VLGtcEHA.2268@.TK2MSFTNGP12.phx.gbl...
> > hi all;
> >
> > is it possible to copy diagram in one database to another database?
while
> > there structure of both dbs are same.
> > I have not found any option in DTS top copy diagrams only.
> >
> > any suggestion? thanks in advance.
> >
> > ansari
> >
> >
> >
> >
>