Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!

I would like to read datas from a GDB file, but I found only 1 dll which allows this to me, and that is http://www.ibprovider.com[^]

But actually this isn't for free, and that's the problem for me.

I tried to make a connection:
MSIL
OleDbConnection con = new OleDbConnection("Provider=what to write here?;" +
                                      "data source=path;" +
                                      "ctype=win1251;user id=SYSDBA;password=masterkey");


But I don't know what to write to Provider.
Is there any other way to read from a GDB file?
Posted

1 solution

It's unlikely that you'll find a free DLL for this. Even the paid one you mentioned above may not be sufficient. Why exactly do you want to parse it directly?

Here's a related thread:

http://forums.asp.net/t/922763.aspx/1[^]

I don't think that code there will work without your having the required provider DLLs though.
 
Share this answer
 
v2
Comments
velvet7 21-Apr-11 15:11pm    
Well, I have downloaded this one, and installed. Now there's another problem:
source code:
string path = "provider=sibprovider;location=D:\\test.GDB; user id=SYSDBA;password=masterkey";
OleDbConnection con = new OleDbConnection(path);
con.Open();
Now when I debug it throws an exception:
OleDbException: "unavailable database"
Patrick Kalkman 21-Apr-11 15:35pm    
Here on CodeProject there is an article about connecting to Interbase from c# http://www.codeproject.com/KB/database/IB_CS.aspx. Maybe it will help.
velvet7 22-Apr-11 2:43am    
Thank you Patrick, it works. Now how should I give you the points?:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900