SQL Server Import and Export Wizard and PostgreSQL

╄→尐↘猪︶ㄣ 提交于 2019-12-10 23:15:26

问题


I am trying to export data from PostgreSQL to MSSQL Server.

Currently, I am exploring the SQL Server Import and Export Wizard.

I have installed the native postgres driver and got the .Net Data Provider for PostgreSQL. Everything seemed fine until I tried to use it.

I got the following: Cannot get the supported data types from the database connection

Is this a driver problem or am I missing something?

Update:

Like @Panagiotis Kanavos suggested I have installed OLEDB driver

There seems to be a problem with it.

I fill the required data, Test the connection, it says that it is successfully established, but when I click Next to continue with the Wizard I get:

===================================

Cannot get string literals from the database connection "Provider=PostgreSQL OLE DB Provider;User ID=postgres;Data Source=localhost;Location=MyDb;Extended Properties=". (SQL Server Import and Export Wizard)

===================================

Object reference not set to an instance of an object. (DTSWizard)

Here are some screenshots:

After clicking Next:

There isn't any useful information about this problem. If anyone has any idea?


回答1:


I was successful using the ODBC drivers (64 bit). 32bit drivers had some memory issues on large tables. See this post: Migrating from PostgreSQL to SQL Server 2008



来源:https://stackoverflow.com/questions/43975322/sql-server-import-and-export-wizard-and-postgresql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!