If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Moving Postgresql to MS SQL?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-24-12, 16:08
lionknight lionknight is offline
Registered User
 
Join Date: Jan 2009
Posts: 4
Moving Postgresql to MS SQL?

Hi,
I am trying moving a database from postgresql to MS SQL. Can anyone advice me how to do this in a reliable way?

Thank you.
Reply With Quote
  #2 (permalink)  
Old 01-24-12, 18:49
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,280
Have a look at this or this.

Why are you migrating away from PostgreSQL? Reliable, good information, helpful community, unmatchable price/quality, works on Windows and Unix ...
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
Reply With Quote
  #3 (permalink)  
Old 01-24-12, 18:53
lionknight lionknight is offline
Registered User
 
Join Date: Jan 2009
Posts: 4
Thanks for your reply, Wim.
Because my boss wants to migrate our database from Postgresql to SQL Azure, there is a three months free trail on windows Azure. He want to try it.

Thank you for the replay again.
Reply With Quote
  #4 (permalink)  
Old 01-26-12, 13:06
lionknight lionknight is offline
Registered User
 
Join Date: Jan 2009
Posts: 4
any one tried migrating PostgreSQL to SQL Azure using ESF Database Migration Toolkit?

I Got error msg:
USE statement is not supported to switch between databases. Use a new connection to connect to a different Database.

Anyone know how to solve this problem?

Thank you.
Reply With Quote
  #5 (permalink)  
Old 01-26-12, 19:01
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
There is a difference in mindset between SQL Azure and previous versions... Since the SQL instance is "cloud hosted" your code can no longer use the USE statement to switch databasse connections. You'll need to create a new ADO connection for each database that your code needs to access.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On