Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

đź‘‹ Introduction

HIC Data team will provide access to study folders in your workspace in read-only mode. This means you won’t be able to make any changes to the data. This has some advantages, such as being certain that the database provided remains in the original state - you can’t accidentally drop rows or entire tables. However, there are cases where you might need to add an additional table or column. For this reason, we also provide a “Working” database - this should have almost the same name as your data release, but with an additional suffix. We always provide the Working database in an empty state, so you can use it as you wish.

These instructions describe the process for creating a writable copy of your read-only database into your working database table.

\uD83D\uDCD8 Instructions

These instructions use a fictional database provided by Microsoft called “AdventureWorks”. We will copy this into a read-write version called “AdventureWorks_Public”

  1. Open Microsoft SQL Management Studio and start a connection to the database server. This has been described in our article on How do I connect to my study's SQL database?

  2. Verify you can find your data release and working database in the list of databases on the left.

  3. Right click on your read-only database (e.g. AdventureWorks2019), navigate to the Tasks submenu and select Export Data.

    1. You will be prompted for connection details for the source database - these are the same as you used to open SQL Management Studio earlier. Once populated, click Next.

    2. Repeat this for the destination connection, selecting the target “_Working” database from the Database dropdown. You can then click Next.

    3. Leave the default “Copy data from one or more tables or views” selected and click Next.

    4. The next step asks which tables you want to copy. You can select just a few, or use the heading checkbox to select all. You can then click Next.

    5. This step is just asking whether to run immediately - leave selected and click Next, then click Finish and wait for the copy to finish.

The last step will take some time as the schema and individual rows are copied. 


For queries or comments regarding HIC How To Articles contact, HICSupport@dundee.ac.uk

 

  • No labels