I am trying to open a program for the first time on Windows XP Pro that uses PostgreSQL 9. I'm getting an error message that says :
Active5 months ago
I am setting up an database application to be database agnostic, and when testing with postgresql I get the standard dsn error: IM002 MicrosoftODBC Driver Manager Data source name not foun. PsqlODBC - PostgreSQL ODBC driver. PsqlODBC is the official PostgreSQL ODBC Driver. It is released under the Library General Public Licence, or LGPL. Downloads are available in source and binary formats at the PostgreSQL downloads site.
A problem was encountered while trying to log into or create the production database. Details: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
In my ODBC manager, I have a list of User DSN's and System DSN's. I tried installing a postgres odbc driver to see if that would help, but it didn't.
There is a connect.dat file in the program file with a line saying 'OLE DB Provider = MSDASQL'. Changing this entry alters the error message I get to 'Provider cannot be found, it may not be properly installed'.
I don't know what provider name to insert to get this to work properly. I have done extensive research on this error to no avail. Any suggestions would be greatly appreciated.
pnuts
![]() Install Postgresql Odbc Driver
51k77 gold badges6565 silver badges105105 bronze badges
user2437443user2437443
62633 gold badges99 silver badges2222 bronze badges
7 Answers
7,26822 gold badges1515 silver badges2929 bronze badges
Microsoft Odbc Driver For Postgres Windows 7
PRGSTonyPRGSTony
Got this error because I had the Data Source Name in User DSN instead of System DSN
Jan Doggen
5,4231313 gold badges4848 silver badges9494 bronze badges
NickNick
1,88722 gold badges2222 silver badges3737 bronze badges
The Problem might be from the driver name for example instead of
DRIVER={MySQL ODBC 5.3 Driver} try DRIVER={MySQL ODBC 5.3 Unicode Driver} you can see the name of the driver from administration tool
MeysamMeysam
I got this with data driven tests using:
The problem is the above driver only is 32 bit. I had switched visual studio testsettings file to 64 bit to test a 64-bit-only application.
Switching back to 32 bit in the testsettings file fixed the issue.
N-ateN-ate
I tried the above but found my issue was I used a | in the name of the DSN (I have multipled ODBC connectors - one for each DB - to make sure I don't comingle data)
I replaced the | (pipe) with a _ and all now works fine.
I was trying to call SQL Server from Alteryx.
calepcalep
Following the instructions here http://help.loftware.com/pages/viewpage.action?pageId=27099554 I had to install the Microsoft Access Database Engine 2010 Redistributable before I had the Excel driver installed to use the DSN-less connection I wanted to use from perl.
Bookmark our website and come back for downloading and playing Free Games as often as you wish!
Matthew LockMatthew Lock
8,61977 gold badges6868 silver badges113113 bronze badges
if you are using IIS, maybe you should try
'application pools' --> 'DefaultAppPool' --> 'application pools default value'--> '32-Bit-application-activ' --> set false
leslieleslie
Not the answer you're looking for? Browse other questions tagged odbcinstallpostgresql-9.2 or ask your own question.
Active3 years, 8 months ago
I am setting up an database application to be database agnostic, and when testing with postgresql I get the standard dsn error:
[IM002] [Microsoft][ODBC Driver Manager] Data source name not found
I usually use SQL server and MySQL so I'm new to postgres, I tried the standard recommended Connection string:
I also tried the name of the odbc driver that I installed after installing postrgesql:
Setting up a DSN in odbc manager also works perfectly using the unicode driver, so I cant understand why i cant connect in my application, is there an error in the driver name that i am using in the connection string?
Soner Gönül
83.6k2727 gold badges161161 silver badges294294 bronze badges
sjwbondsjwbond
2 Answers
Your error message looks very strange. It tells about DSN not found. Are you sure you use connect string with
Driver=.. ?
You can use ODBC connect string in several forms. At first you have created DSN, so you can use it:
Then you can use other form of connect string:
Microsoft Odbc Driver For Postgres Server
Both work on my old 32 bit Windows environment. I test them with simple Python script (I use ActiveState Python in which there is simple Michał Niklas
odbc module):
Postgresql Odbc DownloadMichał Niklas
42.5k1414 gold badges5959 silver badges9494 bronze badges
When you created the DSN, did you create it with the correct odbcad tool? With the 64bit version found in erg
C:WindowsSystem32 if your application is 64bit and with the 32bit version found in C:WindowsSysWOW64 if your application is 32bit?
Postgres 32 Bit Odbc Drivererg
1,31111 gold badge77 silver badges1616 bronze badges
![]() Microsoft Odbc Driver For Db2Not the answer you're looking for? Browse other questions tagged c#databaseodbcpostgresql-9.5 or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |