Follow this solution to extract all content from a DIAGRAMS SQL database project and consolidate it within a new file directory so the files can be compressed and sent via email or other file transfer means.


Step 1: Create a new file directory and copy project files into it

   Copy these files and directories.

  • Diagrams.xml
  • All Drawing files
  • ..\Configuration.xml
  • ..\Support directory and files.
  • ..\Support\Images directory and files
  • SQL database script file from Step 2.

    Once all directories and files are added, compress the new directory into a file to transfer.


Step 2: Extract the project SQL database

Following are instructions and pictures that describe how to extract the database schema using SQL Server Management Studio (SSMS). 


Important:  Make sure that the 'Schema and Data' setting is scripted per Instruction 11 below. 

If this is not set, then only the schema will be sent, without the data. 

If the database contains SQL views, stored procedures, etc. created for those schemas, make sure to select those as part of step 5.


  1. Open SSMS Object Explorer and find the database containing the Project data to extract.
  2. Right-click on the database and expand the Tasks.
  3. Click on Generate Scripts. Select Next to move to the selection page.
  4. Chose Objects:
    Select the Select specific database objects option.
  5. Expand each dropdown selection.
    Important: select objects from each group that pertains to the project database schema
  6. Check database objects for the Project schema, like Project1 shown, and click Next.
    Important.  At minimum select Drawings, items, CommonData, and Connections tables.
     
  7. Set Scripting Options:
    Select Save as a script file.
  8. Browse to the new directory using the ellipsis button and enter a filename
  9. Select the Advanced button.
  10. Find the Types of data to script
  11. Using the dropdown, select the Schema and data option.
    Select OK.
    Select Next
  12. On the subsequent pages, select Next and Finalize to save the scripts to the new directory from Step 1.