0
votes

I installed Firebird 2.5 and the Firebird ODBC driver "Firebird_ODBC_2.0.2.153_x64". My goal is to connect to a test Firebird database through VB.NET 2008.

I set up a User DSN in the ODBC section of the Control Panel and I have a successful connection.

enter image description here

enter image description here

However, when I go to VB.NET and I access the Connect to Database and click on Change to select a different data source, I cannot see a Firebird data source so I could access the fdb database.

What do I need to do to read a Firebird database in VB.NET?

1
I suspect that you are seeing only the 32bit data sources not the 64bit. This however should not impede you to use the 64bit datasource in your code if you compile for AnyCPU or 64bit platforms - Steve
I have tried to install the 32bit ODBC driver but it does not show up in control panel under the ODBC (32bit) heading. If I install the 64 bit one it shows up! - Mark

1 Answers

0
votes

You need to install the 32 bit Firebird ODBC driver, and configure it through the 32 bit ODBC administrator. Visual Studio is a 32 bit application and therefor only has access to 32 bit ODBC DSNs (and 32 bit ODBC drivers).

As Steve already explained in his comments, a 64 bit or AnyCPU application will actually be able to access a 64 bit ODBC DSN.

However, Firebird has a database provider for the .NET platform. There is no need to use ODBC.