Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5844025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:14:12+00:00 2026-05-22T12:14:12+00:00

I have created a new Database Diagram in Test Database and it is in

  • 0

I have created a new Database Diagram in Test Database and it is in sitde01 Server. Now I want to move it to another server. How do I migrate it to another server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:14:13+00:00Added an answer on May 22, 2026 at 12:14 pm

    It can be done, but it’s a royal pain. Here’s an outline of the process and some scripts.

    Diagrams are stored in a “system” table named sysDiagrams. This table (only?) gets created when you click on the diagrams node in SSMS, it asks you if you want to create the objects that support diagrams, and you click “Yes”. Do so on both your source and target databases.

    Create the diagram or diagrams in the “source” database.

    Review the structure and contents of sysDiagrams. Note that column diagram_id is an identity column. 1 row gets stored for every diagram. (You don’t care, but it used to be 4 or 5 rows in SQL 2000.)

    To copy to another database on the same SQL instance, the simplest way is to do INSERT… SELECT… between tables. With that identity column in the way, you’ll have to fuss with SET IDENTITY_INSERT, and perhaps assign a new identity value on the target computer. Irritating, but not critically hard.

    The following script will copy all diagrams from one database to another that’s on the same server (this is how I archive complex diagrams that took waaaay too long to create, from databases that are prone to get dropped and recreated):

    USE TargetDatabase
    
    DELETE sysDiagrams
     where name in (select name from SourceDatabase.dbo.sysDiagrams)
    
    SET identity_insert sysDiagrams on
    
    INSERT sysDiagrams (name, principal_id, diagram_id, version, definition)
     select name, principal_id, diagram_id, version, definition
      from SourceDatabase.dbo.sysDiagrams
    
    SET identity_insert sysDiagrams off
    

    To copy to another database on a different SQL instance (or server), well, it gets even harder. I use temporarily created Linked Server definitions, using scripts I sweated bullets over years ago and never want to have to modify again (i.e. post a different question so someone who knows can tell you how they work), and modify the scripts with appropriate four-part naming conventions. Other options (OPENROWSET and the like) are possible, but I’m even less familiar with those.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to SQL. I have created a new database in SQL Server Management
I have created a new database table with the name 'table'. Now i'm trying
I am new to using the SQLite database in iphone apps. I have created
I have a database temp with table A. I created new database temp2. I
I have created a new server to host a rails 3.2 app with a
I am enhancing an existing web application and I have created a new database
I have created some new databases in SQL Server 2008 Express (10.0.1600.22) and I
I have created a new schema in my PostgreSQl database with psql: CREATE SCHEMA
I have created a new application in my dev environment, and now need to
I created a new SQL Server Database Project within VS 2010, imported the database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.