{"id":1231,"date":"2013-04-06T14:54:56","date_gmt":"2013-04-06T19:54:56","guid":{"rendered":"https:\/\/www.bodhost.com\/blog\/?p=1231"},"modified":"2026-02-26T13:58:49","modified_gmt":"2026-02-26T13:58:49","slug":"sql-server-export-import-a-diagram","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/blog\/sql-server-export-import-a-diagram\/","title":{"rendered":"SQL Server &#8211; Export \/ Import a diagram"},"content":{"rendered":"\r\n<p>A lot of people believe that in SQL Server it is not possible to import or export a diagram of a database to another database. And there are quite a few who ranked this issue among the disadvantages of SQL Server.<\/p>\r\n\r\n\r\n\r\n<p>But I inform you that it is possible to Export \/ Import a database diagram in SQL Server. Here I give you the steps to follow so you can import or export a diagram of a database to another database.<\/p>\r\n\r\n\r\n\r\n<h3><strong><span style=\"font-size: 20pt; line-height: 115%; font-family: 'Arial Narrow','sans-serif';\">Remember that the database diagrams are part of the database.<\/span><\/strong><b style=\"mso-bidi-font-weight: normal;\"><\/b><\/h3>\r\n\r\n\r\n\r\n<p>To address this problem, first, you should know that the information in the diagrams are stored in the table &#8220;dtproperties&#8221;, so you understand that to import or export a diagram, it is enough to import or export the table there.<\/p>\r\n\r\n\r\n\r\n<h4><strong><span style=\"font-size: 16pt; line-height: 115%; font-family: 'Arial Narrow','sans-serif';\">Here are the steps to follow:<\/span><\/strong><b style=\"mso-bidi-font-weight: normal;\"><\/b><\/h4>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Right-click on the database that contains the schema to transfer, click &#8221; All Tasks &#8221; and then click &#8220;Export Data&#8221;.<\/li>\r\n\r\n\r\n\r\n<li>In the Wizard Import \/ Export is displayed, click &#8220;Next&#8221;.<\/li>\r\n\r\n\r\n\r\n<li>Set the source and then click the button &#8220;Next&#8221;. Normally the configuration is done automatically as the previous steps have been made to the source database that contains the chart to transfer.<\/li>\r\n\r\n\r\n\r\n<li>Set the destination database and click the button &#8221; Next &#8220;.<\/li>\r\n\r\n\r\n\r\n<li>In the &#8220;Specify Table Copy or Query&#8221;, &#8220;click&#8221; use a query to specify the data to transfer, then click &#8220;Next&#8221;.<\/li>\r\n\r\n\r\n\r\n<li>In &#8220;Enter the SQL statement &#8220;, type: &#8221; Select * From dtproperties then click &#8220;Next&#8221;.<\/li>\r\n\r\n\r\n\r\n<li>In &#8220;Select the tables and view source&#8221;, choose the table dtproperties in the destination column and then click &#8220;Next&#8221;.<\/li>\r\n\r\n\r\n\r\n<li>Finally, in the &#8220;page Save, schedule and replicate package &#8220;, choose &#8220;Run Now &#8221; click &#8220;Next&#8221; and then click &#8220;Finish&#8221;.<\/li>\r\n<\/ul>\r\n","protected":false},"excerpt":{"rendered":"<p>A lot of people believe that in SQL Server it is not possible to import or export a diagram of a database to another database. And there are quite a few who ranked this issue among the disadvantages of SQL Server. But I inform you that it is possible to Export \/ Import a database [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[323],"tags":[324,325],"class_list":["post-1231","post","type-post","status-publish","format-standard","hentry","category-sql","tag-sql-server","tag-sql-server-export-import"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/1231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/comments?post=1231"}],"version-history":[{"count":5,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/1231\/revisions"}],"predecessor-version":[{"id":5494,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/1231\/revisions\/5494"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/media?parent=1231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/categories?post=1231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/tags?post=1231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}