I want to build a connection between ODBC and Firebird. It has shown error messages like these:
[ODBC Firebird Driver] Unable to connect to data source; library'gds32.dll' failed to load
[ODBC Firebird Driver] Invalid connection string attribute.
Here is my code:
Dim conn As ADODB.connection
Dim vError As Variant
Dim sErrors As String
Dim stringsql As Long
Dim dbs As DAO.Database
Dim recordset_case As ADODB.Recordset
'*************************************************************
'Setting up connection between IRIS data and central database
'***********************************************************
'1.set up connection
Set conn = New ADODB.connection
On Error Resume Next
conn.Open "DRIVER=Firebird/InterBase(r) driver;
DBNAME=C:\IRIS\Data\IRIS_TEST.IB; UID=SYSDBA; PWD=masterkey;READONLY = YES"
On Error GoTo 0
'to test whether the connection has been built over the IRIS and central database
If conn.State = adStateOpen Then
'adstateopen=the object is open
MsgBox "Connection Succeeded", vbInformation
Else
For Each vError In conn.Errors
sErrors = sErrors & vError.Description & vbNewLine
Next vError
If sErrors > "" Then
MsgBox sErrors, vbExclamation
Else
MsgBox "Connection Failed", vbExclamation
End If
End If
At this stage, I have tried these following steps:
Based on this article, I have renamed the fdclient.dll to gds32.dll and copied to system32 file. Then I selected Firebird client library in the Firebird ODBC driver setting.
This does not work.Uninstall and reinstall Firebird. Due to Firebird being a part of our software package, we did follow that step. Beside, we have checked the Firebird is the latest version for 2.5.4. Thus, we do have the latest version for Firebird server.
That does not work either.