(Libre Office / Base Database) always tries to connect ODBC using iODBC, not unixODBC on Mac OSX 10.10 - sql

I am using Libre Office Version: 4.3.4.1 on my Mac OSX 10.10 Yosemite.
In Base Database, I would like to connect MS-SQL server using unixODBC DSN.
But it seems the Libre Office tries to connect via iODBC, not unixODBC.
(I never installed iODBC on my Mac.)
Here is what I tried.
Following instructions, I already setup unixODBC, FreeTDS using Homebrew and all the tsql/isql connection tests were fine.
After installing, I launched "Database Wizard" from Base database.
And choose 'ODBC' from "Connect to an existing database",
I entered s01, my unixODBC DSN name, to "Name of the ODBC data source on your system" field. (When I clicked 'Browse' no registered data source were shown.)
And I typed my unixODBC username and checked Password required.
When I clicked 'Test Connection' button and input the password, an error occurred as below.
[iODBC][Driver Manager]Data source name not found and no default driver specified. Driver could not be loaded.
SQL Status: IM002
[iODBC][Driver Manager]Data source name not found and no default driver specified. Driver could not be loaded
Does anyone have an idea to solve this problem?

I would recommend you stick with iODBC, the ODBC driver manager Apple has shipped as part of OS X since Jaguar (10.2). The version Apple bundles into Yosemite (10.10) remains a bit behind, at 3.52.6, so I would also recommend you update to 3.52.10.
iODBC and UnixODBC are built to be API equivalent, so you should just need to ensure that your drivers and DSNs are properly configured in the iODBC locations, optimally via iODBC Administrator.app (/Applications/iODBC/). System DSNs are recommended for most purposes.
/Library/ODBC/odbc.ini # System DSNs
/Library/ODBC/odbcinst.ini # System drivers
~/Library/ODBC/odbc.ini # User DSNs
~/Library/ODBC/odbcinst.ini # User drivers

Related

Microsoft Access SQL Database connection with Python 3.7.9 [duplicate]

When trying to make a program on Windows that connects to a database via ODBC, I got the following error:
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.
I'm sure my code is right. It even worked on a different PC.
Why am I getting this error? And How do I fix it?
What causes this error?
The error message tells you, simply put, that the ODBC Driver Manager could not find the driver you specified in your connection string or DSN.
This can have 3 common causes:
The driver you tried to use is not installed on your system
The driver is installed, however, it doesn't match bitness of the code you're running
You made an error in typing the driver name
How do I check which drivers are installed on my system?
You can check the drivers which are installed on your system by going to the ODBC Data Source Administrator. To open it, press ⊞ Win + R, and type in: odbcad32.exe. Then check the tab Drivers for installed drivers. The Name column indicates the exact name you should use in your connection string or DSN.
If you're on 64-bit Windows, that only lists the 64-bit drivers installed on
your system. To see which 32-bit drivers are installed, press press ⊞ Win + R, and type in: C:\Windows\SysWOW64\odbcad32.exe, and go to the Drivers tab again.
The driver is installed, but it might be the wrong bitness, what do I do?
Then, you have two choices, either adjust the bitness your program is running in, or install a driver with a different bitness.
Some of the drivers that are installed by default on Windows only have a 32-bits variant. These can't be used with 64-bits programs.
You can usually identify which bitness a program is running under in task manager. In Windows 10, all 32-bit programs have (32-bit) appended to their name. If that isn't there, you're likely running a 64-bit program, and most modern programming languages and environments run on 64-bit by default, but allow you to switch to 32-bit. However, the specifics for different programming languages are outside the scope of this question.
How can I verify I didn't mistype the driver name?
An ODBC connection string looks like this:
DRIVER={DriverName};ParameterName1=ParameterValue1;ParameterNameN=ParameterValueN;
The driver name part needs to be delimited by curly braces if it might contain special characters, and needs to exactly match the installed driver name, as found in the ODBC Data Source Administrator, including spaces and typographical characters, but excluding capitalization.
Note that for deployed code, the driver must be present on the computer/server running the code.
I don't have the driver, or have the wrong bitness, where do I get the right one?
That depends on which driver you want to use.
A list of common drivers with download locations (all 32-bit and 64-bit at the same URL):
The Microsoft ODBC Driver 17 for SQL Server
The Microsoft Access database driver, which is part of the Microsoft Access Database Engine. Note that simultaneous installations of 32-bit and 64-bit Access ODBC drivers are not supported.
The MySQL ODBC connector by Oracle
The open-source SQLite ODBC driver by Christian Werner (non-official)
psqlODBC, the official PostgreSQL driver
If the driver you want to use isn't listed, the location is usually easily found using Google.
In design mode, a value has been set to the property of
TFDConnection.ConnectionDefName must be empty.

[RESOLVE]ODBC Driver Manager] Data Source name not found and no default driver specified

I created a vb project and made an installer of it, it works fine with my pc and it also works on some of the users who used the system on their machine, but then there's this particular user of received this error, please help T.T
I tried...
checking my connection string on my vb project just to make sure, but it's fine.
check if my system deployed is 32 bit and the MySQL ODBC connector, both are 32 bit.
tried checking if the MySQL ODBC driver is properly installed on the 32-bit ODBC data source,
I search this win + R (c:\windows\sysWOW64\odbcad32.exe) to make sure that I'm in a 32-bit data source since both 64 bit and 32-bit data source has the same name on my laptop.
also, i notice that the drivers installed on 32 bit data source doesn't have version,company and such (refer to image 2), while on the 64 bit data source it does have version, company and such (refer to image 1).
it turns out that the network of that particular user has block the access to the installed drivers, it got resolve when they connect to a different network.

Database query tool for Mac OS X?

I need to test one odbc driver for mac.
What are database query utilities using ODBC for Mac OS X like DBForge, OmniDB etc?
Presuming you are testing a driver bound to iODBC, the ODBC driver manager that Apple ships with macOS, you should install the latest iODBC SDK update, which comes with iODBC Test.command and iODBC Demo.app (found in /Applications/iODBC/). You can execute any arbitrary ODBC query through these tools.
ODBC Bench, a separate install which simulates TPC-A and TPC-C on your own equipment/network. (You'll need to build your own binary to test a 64-bit driver, as the downloadable pre-built binary is 32-bit only.)
Most GUI-space apps on macOS are shipped with binding to iODBC, and are thus also candidates for your use.

"crashes" while exporting from VM

I am using CENTOS6 and REDHAWK2.0 (RH2.0). VM installed based on "VirtualBox 5.0.16 for Windows host" and "VirtualBox 5.0.17 r106140 Guest Additions installer image". The OS for the computer is Windows professional 7. However, whenever I export the machine profile (CENTOS6, RH2.0) from VM, all the projects listed in the REDHAWK "project explorer" window disappear (no projects show up in "project explorer" window if I reopen the REDHAWK IDE). I have tried this in different PCs, and it keeps happening. However, if I don't export the appliance, everything is OK, which means that project list in the "project explorer" window stay no matter how many times I close and open the REDHAWK IDE in the VM.
Another note:
When I close the VM, I get the following message:
Microsoft Visual C++ Runtime Library
Runtime Error!
program: C:Program Files\Oracle\VirtualBox\VBoxSVC.exe
R6025
-pure virtual function call
Then, after I close this dialogue box, I got another message:
VirtualBox Interface has stopped working
Details:
Problem signature:
Problem Event Name: APPCRASH
Application Name: VBoxSVC.exe
Application Version: 5.0.16.5871
Application Timestamp: 56d9b7f1
Fault Module Name: MSVCR100.dll
Fault Module Version: 10.0.40219.1
Fault Module Timestamp: 4d5f034a
Exception Code: 40000015
Exception Offset: 00000000000761c9
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 3b88
Additional Information 2: 3b88e6353d8105cc00c90d3a5da0074b
Additional Information 3: 5abc
Additional Information 4: 5abc42e81271271eab3d346a48f0ce0a
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid= ... cid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
Any clues on how to fix this problem?
I have not seen any bugs that are related between VirtualBox itself on the host and the Redhawk project explorer in the guest, but the following are steps you can take to debug further. Because your order of operations isn't clear:
Do not export a VM while the VM is still running. Shut it down first, then export.
If you were already doing that, or still have issues, ensure there are no compatibility issues between your version of host OS (Windows 7 Professional) and the version of VirtualBox (VirtualBox 5.0.16). A quick search on your error turned up VirtualBox COM service crash at exit. Try re-installing the VirtualBox client and updating your Windows host - if there is something wrong/corrupted with VirtualBox itself then there's no telling what problems you'll have with a guest OS.
If you re-install VirtualBox and then re-import or add your existing VM and you still have issues inside the VM with Redhawk IDE project explorer view, you may have a corrupted IDE. Delete the eclipse folder with the IDE and re-download it.

IBM MobileFirst Platform Studio SQL Adapter User Password in Encrypted format

I'm Using IBM SQLAdapter for storing updating user information.. but I want to store password in database in encrypted format. and displaying password shown in decrepted format.. how can i do this using IBM MobileFirst Stdio
If you will read the error message, you'll see it's not related to your installed Java version nor to the Eclipse version you're using.
I've tried myself on Mac OS X 10.10.1 and Eclipse Kepler SR2. The installation from the Marketplace was successful. Note that the installed artifacts are the same whether you use Windows, Linux or Mac.
It was very slow, though, so it could be it something 'bad' happened during it.
This may also be due to either a network problem or temporary cache problem on the servers.
What you can do:
Wait and try again later,
Or download this Studio .zip file. Then, in Eclipse > Help > Install new software... > Add > Archive, and select the downloaded .zip file.