cannot connect to firebird-interbase data with .gdb

This is the first time I've run on the gdb database
I have a project in which I wanted to connect to the Firebird-interbase database with the .gdb extension when the project is running. This message appears for me "Error, cannot attach to password database"
that I have installed both firebird odbc and firebird "Firebird_ODBC_2.0.4.155_x64 and Firebird-"
I also succeeded in opening it the by dsn through Access, but when I want to open it through the message appears above
I used the following code :

Imports FirebirdSql.Data.FirebirdClient

  Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim CheminPath As String = My.Application.Info.DirectoryPath
    Dim cheminDB As String = CheminPath & "|DataDirectory|\Data\OFFICINE.GDB"
    Dim conn As New FbConnection
    Dim csb As FbConnectionStringBuilder
    csb = New FbConnectionStringBuilder
    csb.UserID = "SYSDBA"
    csb.Password = "masterkey"
    csb.Database = cheminDB
    csb.DataSource = "localhost"
    csb.ServerType = 0

    conn = New FbConnection(csb.ToString())
    'Ouverture de la BDD
        MsgBox("Connecter ")
    Catch ex As Exception
        MsgBox("Erreur de connection à la BDD !" +
        Chr(13) + Chr(13) + "Détails :" + Chr(13) + ex.Message(), MsgBoxStyle.Critical, "Fluox")
        Exit Sub
    End Try
End Sub

0 answers