Question : How can i connect to a Firebird database from Visual Foxpro 9?
How can i connect to a Firebird database from Visual Foxpro 9? Please give me some code examples.
Solution: How can i connect to a Firebird database from Visual Foxpro 9?
Either create DSN (Control panel – Other options (or Administrative tools) – ODBC data sources) and select Firebird driver from the list of offerred drivers.
Or use SQLSTRINGCONNECT():
lnHandle= SQLSTRINGCONNECT(“DRIVER=Firebird/InterBase(r) driver;UID=UserName;PWD=Password;DBNAME=C:FirebirdYourDB.FDB”)
The ODBC driver is available at http://www.firebirdsql.org/index.php?op=files&id=odbc
ODBC documentation (containing connection string examples) is included in ZIP file together with Win 32 DLL driver.