Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Import diagram to SQL-server 2000

Import diagram to SQL-server 2000

Scheduled Pinned Locked Moved Database
databasesysadminquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rulle
    wrote on last edited by
    #1

    Is there any other easy way to import a diagram to an SQL-server 2000 DB than doing a restore of a backup? (Do not want to do a restore...)

    N 1 Reply Last reply
    0
    • R Rulle

      Is there any other easy way to import a diagram to an SQL-server 2000 DB than doing a restore of a backup? (Do not want to do a restore...)

      N Offline
      N Offline
      notadood
      wrote on last edited by
      #2

      Yes it is pretty simple. All database diagrams are stored in the table dtproperties. This link will show you the query you need to run. http://www.mssqlcity.com/FAQ/TranMove/MoveDiag.htm

      R 1 Reply Last reply
      0
      • N notadood

        Yes it is pretty simple. All database diagrams are stored in the table dtproperties. This link will show you the query you need to run. http://www.mssqlcity.com/FAQ/TranMove/MoveDiag.htm

        R Offline
        R Offline
        Rulle
        wrote on last edited by
        #3

        Hmm I've tried both examples now and they all resulted in that a copy was created of an already existing diagram with exactly the same name(!). When I deleted one of the diagrams, SQL Enterprise Manager crashed every time I tried to look at a diagram... 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 have to add "Northwind.." in the last statement. I don't see how to transfer diagrams from different servers, only between databases on the same server. Have I missed something?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups