I have followed the steps listed in this answer from another thread but when I try to click Next >
on the destination screen I get the error:
TITLE: SQL Server Import and Export Wizard
------------------------------
The operation could not be completed.
------------------------------
ADDITIONAL INFORMATION:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I have:
- Installed
PostgreSQL ODBC Driver
on the source server - Added in
ODBC Data Source Administrator (32-bit)
aPostgreSQL Unicode
driverUser DSN
(also tried aSystem DSN
) source namedpostgres
(settings are all correct as the Test runs fine) - Inside SSMS right-clicked on the database I want to export from and selected Tasks -> Export Data
- Chose SQL Server Native Client on the source screen and entered the credentials for SQL Authentication
- Chose .NET Framework Data Provider for ODBC as the destination driver
- Entered the below connection string
- Hit
Next >
and the error pops up
My connection string is: Dsn=postgres;Driver={PostgreSQL Unicode};server=<servername>;port=<port>;database=postgres;uid=<user>;pwd=<pass>
(the things between <>
are actually filled out, just redacted for post).
Just in case it matters, I am trying to export from my SQL database into my PostgreSQL database.
Here are versions for everything:
- SQL Server Management Studio: v17.5 (
About
window shows this and below value) - Microsoft SQL Server Management Studio: 14.0.17224.0
- Source Database: SQL Server 11.0.2100.60
- Source Server: Windows Server 2012 R2
- Source ODBC: 32-bit
- Destination Database: pgAdmin 3.0
- Destination Server: Windows Server 2012 R2