MSSQLCity.Com - All about MS SQL
     
About Us  
SSWUG Articles  
Articles  
FAQ  
Administration  
Backup/Restore  
Connectivity  
Development  
General  
Installation  
OLAP  
Replication  
Transfer/move  
Trouble  
SQL 6.5  
Scripts  
Tips  
Test Exams  
Advertise  
Download  
History  
Search  
Traffic  
Related Links  
     
Your button logo
Add to Favorites
 
     
 


How can I transfer the particular database diagram from one SQL Server to another?

Answer:

This is the example to move the Relationships diagram from the Northwind database into Example database.

insert into
 Example..dtproperties (objectid, value, lvalue, version, property)
select
 objectid, value, lvalue, version, property
from
 Northwind..dtproperties
where objectid = 
 (select objectid from dtproperties where value = 'Relationships')
You can also use this stored procedure to move database diagram:
http://www.swynk.com/downloads/sp_importdiagram.sql


 

 
Visit The SQL Server Worldwide User's Group for all the latest news and information about SQL Server, Oracle, DB2 and XML for developers and administrators.

(c) 1997, 2010 Bits on the Wire, Inc