This is the first time I've run on the gdb database
I have a vb.net 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_184.108.40.206_x64 and Firebird-220.127.116.11483_2_x64"
I also succeeded in opening it the by dsn through Access, but when I want to open it through vb.net the message appears above
I used the following code :
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 Try conn.Open() 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