Initial population of the Stage database

An easy way to make an initial population of the Stage database is to use the Import function of the SQL Server Management Studio. The Import function lets you select and copy full tables from the source system.

mceclip0.png

Choose the DD_W1_01 database as source for the import.

mceclip1.png

And Stage as the destination.

The next step offers options to either copy data or to write a query to select data.

While writing a query may be useful to select certain fields or to select filtered data, the other option, copy data, will quickly give you some data to start from.

mceclip2.png

Next step is to select the tables that we want to import during our initial data load.

mceclip3.png

Notice that you are able to rename the destination tables during one of the steps of the Import and Export Wizard. For instance, we have chosen to simplify the names so they will no longer contain the “CRONUS EXT International Ltd” leading text.

The tables we want to import at this point are:

  • CRONUS EXT International Ltd_$Country_Region
  • CRONUS EXT International Ltd_$Customer
  • CRONUS EXT International Ltd_$Item
  • CRONUS EXT International Ltd_$Sales Invoice Header
  • CRONUS EXT International Ltd_$Sales Invoice Line

Run the import:

mceclip4.png

And wait until it has completed:

mceclip5.png

The import has successfully completed, importing the five tables. Notice the row count of more than 37000 on the Sales Invoice Line table.

After the import, we may want to verify that the tables now exist in the Stage database, and that they actually contain data:

mceclip6.png

Right-click a table to view the first 1000 rows.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.