Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds

Migrating from MS SQL Server 2008 to EnterpriseDB

Save for later
  • 2 min read
  • 09 Oct 2009

article-image

With many database vendor products in the market and data intensive applications using them, it is often required to port the application to use the data or, migrate the data so that the application can use it. Migration of data is therefore one of the realities of the IT Industry. Some of the author's previous articles on migration can be found at this link. You may find more if you do a search on his blog site.

Table to be migrated in SQL Server 2008

The following figure shows the Categories table in the Microsoft SQL Server 2008's Management Studio that will be migrated to the Postgres database.

migrating-ms-sql-server-2008-enterprisedb-img-0

Creating a database in Postgres Studio

Right click Databases node in the Advanced Server 8.3 and click on New Database... menu as shown.

migrating-ms-sql-server-2008-enterprisedb-img-1

The New Database... window gets displayed as shown. Create an empty database PGNorthwind in Postgres Studio by entering information shown in the next figure.

migrating-ms-sql-server-2008-enterprisedb-img-2

This creates a new database and related objects as shown in the next figure.

migrating-ms-sql-server-2008-enterprisedb-img-3

This also creates the script in the Properties pane as shown. Review the properties. The database may be dropped using the Drop Database statement.

migrating-ms-sql-server-2008-enterprisedb-img-4

Starting the Migration Studio

Click on Start | All Programs | Postgres Advanced Server 8.3 to display the drop-down menu as shown.

Unlock access to the largest independent learning library in Tech for FREE!
Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
Renews at $19.99/month. Cancel anytime

migrating-ms-sql-server-2008-enterprisedb-img-5

Click on the Migration Studio drop-down item. This opens the EnterpriseDB Migration Studio 8.3(Migration Studio for the rest of the tutorial) with a modal form with the title Edit Server Advanced Server 8.3(localhost:5432). This is the server we installed in the previous tutorial.

migrating-ms-sql-server-2008-enterprisedb-img-6

Enter the User Name and Password and click OK. You will get a message displaying the result as shown in the next figure.

migrating-ms-sql-server-2008-enterprisedb-img-7

Click OK to both the open windows and the EnterpriseDB Migration Studio shows up as shown here.

migrating-ms-sql-server-2008-enterprisedb-img-8

Click on the File in the main menu on the Migration Studio and pick Add Server. This brings up the Add Server window with a default as shown.

migrating-ms-sql-server-2008-enterprisedb-img-9