ODBC Driver Manager error - odbc

I have this project on visual basic which I am running on Virtual machine on windows xp. i am getting following error.
Run-time error'-2147467259(80004005)': [Microsoft][ODBC Driver
Manager]Data Source name not found and no default driver specified
how to make connect it to odbc and make it run on virtual machine??

change the target location to "%windir%\sysWOW64\odbcad32.exe" in properties of Data Sources (ODBC) in Control Panel\Administrative tools.
Open ODBC Data Source -- open System DSN tab -- click on add--Click Microsoft access Driver(.mdb,.accdb) --- click finish
Give it Data Source Name - dsname , Click on Select button---located your database file. Then clicked ok and again ok.
Make appropriate changes in your vb project with the data source name with "dsname" .
Now try running your application

Related

Getting Windows to detect IBM AS400 provider

I am trying to get a connection to work on my machine to an AS400 database as per this link.
I have confirmed that there is no firewall blocking the machine I am working on. I have confirmed that the connection info works on a different machine with a .UDL file. I have installed the requisite C++ runtime libraries onto the machine and confirmed it has the appropriate .NET framework (it has 4.7.2). When I try to run the UDL file with the same connection information, I get "Provider cannot be found. Ensure that the provider has been installed properly." As far as I can tell I did, but it is not detecting that?
Can someone help me understand how to get it set up so that the UDL file will indicate if the connection was successful or not? I'm not really sure what is at issue at this point.
edit: I got lucky on more searching and so on further inspection, I can see that it is not in the registry editor. Could that be the issue? How would I add it there properly so that it shows up as a Data Link so that I can configure it correctly?
go here to download and install access client solutions
after installing the base package, navigate in the install folder and find the Windows_Application folder. In that folder, double click on install_acs_64.js. That will install the ODBC drivers.
run the ODBC Data Source Adminstrator app on the windows PC. Click the Add button. Select the IBM i Access ODBC Driver. Make sure to click the Server tab and set the default schema and library list.
Once the ODBC driver is installed you can test the connection by opening Excel and use the Data tab to config a connection to the IBM i database.

FoxPro and old softwares

I have an old software running on XP. When I run it on another pc the following error arises
odbc driver manager, data source name not found and no default driver specified.
How do I get around this problem?
Note: on the old system I checked in administrative tools in data source is has foxpro drivers.
Technically that message looks like a failed attempt to create an ODBC connection via DSN ("Data Source Name") which does not exist. VFP Command Window example:
? SQLCONNECT("DsnDoesNotExist")
AERROR(laErrors)
DISPLAY MEMORY LIKE laErrors
If the original maintainer of your software did not provide any "setup" documentation, you can find the Name of the required Data Source in the source code, either as code line(s) using Vfp's SqlConnect()function, or as a "Connection" object stored in a Vfp myDatabase.DBC
If you have not got the source code, you can try to find the related "User DSN" or "System DSN" in the Windows "ODBC Data Source Administrator" of the old PC.
That DSN would contain the required connection string including driver info, e.g. "PostgreSQL" or "MS SQL Native Client", etc.
If the new system is a 64bit version, you'd need to use the 32bit version of the administration tool (usually C:\WINDOWS\SysWOW64\odbcad32.exe) in order to recreate the DSN there.
FWIW, Vfp itself does not necessarily need a "DSN" for ODBC connections - if you've got the source code, see the SqlStringConnect() function in the VFP documentation or try a web search

error on double clicking the driver of ms access in ODBC datasource administrator

Hi I was trying to connect to a table in MS-Access(2007) with perl. but each time I execute, I receive an error an failed: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (SQL-IM002).
Recently when I tried double clicking on the Driver in ODBC datasource administrator I found the error The setup routines for the microsoft access driver(*.mdb,*.accdb) ODBC driver could not be found. Please reinstall the driver. I tried installing drivers but still I get the same error.
Please guide me with my problem.
In a 64-bit system ,by default all the datas are linked on to the 32-bit. so we need to explicitly move datas from 64 to 32-bit.

Data source name not found and no default driver specified

I am getting this error when I try to insert record in db.
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
my connection is :
Application("Db_ConnectionString")= "DSN=dsnname;UID=xxx;PWD=xxx;"
please help me asap.
thanks in advance.
thanks for your answers.
I myself fixed the error. Assigned wrong dsn name in my code.
I changed it and now its working fine
I got this error on Windows Server 2012 when migrating a legacy ASP app - I had to enabled 32-bit applications in the AppPool's advanced setting
Have you setup "dsnname" in ODBC? Should be in Adminitrative Tools > Data Sources (ODBC) under the System DSN tab.
this problem can be solve using install jdk 7 to download go
to below link
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Java SE Development Kit 7u79
Product / File Description : Windows x86
Size: 138.31 MB
Download: jdk-7u79-windows-i586.exe

JET and ODBC driver missing, can not get data from MDBs

These are MY symptoms: (XP Pro, 32bit)
-Programs that access .mdb databases (aside from Access 2007 itself) can not get any data.
-Using the Data Sources in Visual Studio 2008 to connect to an MDB shows tables, but you can not query. you receive "Unknown Error" from the Microsoft JET Database Engine
-ArcCatalog can not read a personal geodatabase (mdb), after opening the database it has no feature classes within it
-Trying to bring up the properties of a User DSN "MS Access Database" in the ODBC Data Source Administrator returns error
"The setup routines for the Microsoft Access Driver (*.mdb, *.accdb) ODBC driver could not be found. Please reinstall the driver."
I attempted to reinstall latest MDAC (by setting it to compatibility mode of windows 2000) and latest JET driver. Reinstalled XP SP3.
Also tried a lot of regsvr32 gymnastics with the dao350.dll and dao360.dll, uninstalled the dao350, etc, etc. Nothing worked.
(Yes, I'm answering my own question, to record my solution)
I should also note, in addition to above, I couldn't use the SQL Native Client driver either.
In the registry, under HKLM\SOFTWARE\ODBC the \ODBC.INI branch contains any defined connections, and the \ODBCINST.INI contains records for the installed drivers.
I checked a similar development machine, and my ODBCINST.INI was missing A LOT of entries. I blame the ccleaner application that was recently used to clean up my system of junk.
After exporting the registry branch from the other computer, and importing over my existing keys, everything worked again.
Below are some of the core records, to generate a .reg script. You should get the full list from a similar machine to yours.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI]
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Access Driver (*.mdb)]
"UsageCount"=dword:00000002
"Driver"="C:\\WINDOWS\\system32\\odbcjt32.dll"
"Setup"="C:\\WINDOWS\\system32\\odbcjt32.dll"
"APILevel"="1"
"ConnectFunctions"="YYN"
"DriverODBCVer"="02.50"
"FileUsage"="2"
"FileExtns"="*.mdb"
"SQLLevel"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Access Driver (*.mdb, *.accdb)]
"UsageCount"=dword:00000003
"Driver"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODBC.DLL"
"Setup"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODBC.DLL"
"APILevel"="1"
"ConnectFunctions"="YYN"
"DriverODBCVer"="02.50"
"FileUsage"="2"
"FileExtns"="*.mdb,*.accdb"
"SQLLevel"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Excel Driver (*.xls)]
"UsageCount"=dword:00000002
"Driver"="C:\\WINDOWS\\system32\\odbcjt32.dll"
"Setup"="C:\\WINDOWS\\system32\\odexl32.dll"
"APILevel"="1"
"ConnectFunctions"="YYN"
"DriverODBCVer"="02.50"
"FileUsage"="1"
"FileExtns"="*.xls"
"SQLLevel"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)]
"UsageCount"=dword:00000003
"Driver"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODBC.DLL"
"Setup"="C:\\PROGRA~1\\COMMON~1\\MICROS~1\\OFFICE12\\ACEODEXL.DLL"
"APILevel"="1"
"ConnectFunctions"="YYN"
"DriverODBCVer"="02.50"
"FileUsage"="2"
"FileExtns"="*.xls,*.xlsx, *.xlsb"
"SQLLevel"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\SQL Native Client]
"UsageCount"=dword:00000001
"Driver"="c:\\WINDOWS\\system32\\sqlncli.dll"
"Setup"="c:\\WINDOWS\\system32\\sqlncli.dll"
"APILevel"="2"
"ConnectFunctions"="YYY"
"CPTimeout"="60"
"DriverODBCVer"="09.00"
"FileUsage"="0"
"SQLLevel"="1"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\SQL Server]
"UsageCount"=dword:00000002
"Driver"="C:\\WINDOWS\\system32\\SQLSRV32.dll"
"Setup"="C:\\WINDOWS\\system32\\sqlsrv32.dll"
"SQLLevel"="1"
"FileUsage"="0"
"DriverODBCVer"="03.50"
"ConnectFunctions"="YYY"
"APILevel"="2"
"CPTimeout"="60"

Resources