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

  • Home
  • SEARCH
  • 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 3443346
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:46:48+00:00 2026-05-18T08:46:48+00:00

I use the handy Database Diagramming tool in SQL Server 2008 for creating and

  • 0

I use the handy Database Diagramming tool in SQL Server 2008 for creating and managing relationships. I have exported the sourceDB to the destinationDB but the diagram doesn’t come across.

I am looking around trying to figure out how to export just the diagram I have in one database to another… This online KB article fails since select * from dtproperties doesn’t exist anymore.

  • 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-18T08:46:48+00:00Added an answer on May 18, 2026 at 8:46 am

    @Ash I was having the same problem. Here’s what we did to get around it…

    It seems that System Diagrams are stored within the “sysdiagrams” table. So the first thing you need to do is determine the diagram_id of the Diagram you wish to copy. Run the following query to list them all. ** Note you need to replace “SourceDB” with the name of your database.

    -- List all database diagrams
    SELECT * FROM [SourceDB].[dbo].sysdiagrams
    

    Then you can use INSERT to duplicate the diagram from one database to another as follows. ** Note again replace “SourceDB” with the name of the Database containing the existing diagram and “DestinationDB” with the name of the Database you wish to copy to. Also @SourceDiagramId should be set to the id retrieved above.

    -- Insert a particular database diagram
    DECLARE @SourceDiagramId int = 1
    
    INSERT INTO [DestinationDB].[dbo].sysdiagrams
    SELECT [name],diagram_id , version,definition from [SourceDB].[dbo].sysdiagrams
    WHERE diagram_id = @SourceDiagramId
    

    Then you need to set the “principal_id” to 1 manually.

    -- Update the principal id (no idea why, but it set the owner as some asp_net user
    UPDATE [DestinationDB].[dbo].sysdiagrams
    SET principal_id = 1
    

    This worked for us it seems pretty hacky especially since the Diagram is stored entirely in a single binary field “definition”.

    Answer comes from:
    http://www.dotnetspider.com/resources/21180-Copy-or-move-database-digram-from-for.aspx

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

Sidebar

Related Questions

I have found ASP.Net PageMethods very handy and easy to use, but I have
I have an application where I'd like to use a NoSQL database, but I
In the office we use Visual Studio 2008 with Team Foundation Server as our
I've been working with Microsoft SQL Server with many years now but have only
how can i use SQL statement in CoreData database ? which part of CoreData
I have an application in which we use a hand-made build system.The reason for
Simply put: I have a database design in my head and I now want
I've designed a C# game that makes use of an Access .mdb database file
I have a database that have quite a bit relational user information that would
I'm planning to use MNIST database to train a classifier to recognize the hand

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.