October 31, 2003 at 9:41 am
Is there an easy way (script?) to copy the structure of a Diagram, and then rebuild it as needed. Specifically, I'm running SQL Server 2000, and we need to drop and re-import (from Access) several tables. We don't want to loose 99% of the current relationships and constraints when the tables are removed and replaced. Plus, we like the diagram.
I know that if you modify your Diagram, you can then generate a script of your changes. I want to be able to generate a script even if I haven't made any changes (i.e. I want all the info for the diagram in a script).
Any little bit can help.
Thanks, Allan.
November 3, 2003 at 8:00 am
This was removed by the editor as SPAM
November 3, 2003 at 2:25 pm
in enterprise manager select the database you want to script,
Select menu Tools -> Generate SQL Script...
Click Show ALL
Check Script All Objects
On the options tab check all the options you might be intrested and click OK
November 4, 2003 at 10:43 am
Thanks for the info, Lawrence. However, I was hoping that there would be a way to reproduce the diagram itself. It doesn't seem possible at the moment - maybe Yukon will include this ability.
Allan
November 14, 2003 at 8:12 am
I stand corrected!
Brian Knight has posted (11/13/2003) an article "Transfering a SQL Server Diagram". It looks good.
Thanks Brian -
Allan
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply