Hi,
I've been appointed instant expert and am required to write a VB app to taketh from Interbase and giveth to MsSQL. While the mssql part is understandable the vb/interbase bit is very vague. I have searched the web for 3 days and sifted much info and finally selected upon an OLE DB sub tool, called IBProviderfree (available from Borland), of IBProvider.
The _ibproviderfree.dll installed nicely and was registered successfully. I trawled through the numerous VB examples the majority of which have as connection setup something like
Dim cn As New ADODB.Connection
cn.Provider = "LCPI.IBProvider"
cn.Open "data source=localhost:c:\database\employee.gdb;
ctype=win1251", , "SYSDBA", "masterkey"
cn.close
But on execution the result is "invalid outside procedure" with LCPI.IBProvider hilighted.
Has anyone had any experience with VB and interbase/IbProvider? What kind of references do I need to install in VB?
The documentation I've found on the web is great once you get the thing started (I suppose) but it doesn't spell out how to associate the two. A lot of the doco was the same doco bundled with IBProvider.
As a related question, where does .Provider actually look for LCPI.IBProvider?
Please let me know if you need more information as I am a little green in this area.
Many thanks
Anthony Lawrence
I've been appointed instant expert and am required to write a VB app to taketh from Interbase and giveth to MsSQL. While the mssql part is understandable the vb/interbase bit is very vague. I have searched the web for 3 days and sifted much info and finally selected upon an OLE DB sub tool, called IBProviderfree (available from Borland), of IBProvider.
The _ibproviderfree.dll installed nicely and was registered successfully. I trawled through the numerous VB examples the majority of which have as connection setup something like
Dim cn As New ADODB.Connection
cn.Provider = "LCPI.IBProvider"
cn.Open "data source=localhost:c:\database\employee.gdb;
ctype=win1251", , "SYSDBA", "masterkey"
cn.close
But on execution the result is "invalid outside procedure" with LCPI.IBProvider hilighted.
Has anyone had any experience with VB and interbase/IbProvider? What kind of references do I need to install in VB?
The documentation I've found on the web is great once you get the thing started (I suppose) but it doesn't spell out how to associate the two. A lot of the doco was the same doco bundled with IBProvider.
As a related question, where does .Provider actually look for LCPI.IBProvider?
Please let me know if you need more information as I am a little green in this area.
Many thanks
Anthony Lawrence