[Gambas-user] Conect to Firebird
Sergio A. Hernandez
info.geex at ...626...
Sat May 16 01:47:42 CEST 2009
In your Package Manager (YAST/Synaptic/Etc) make sure that the
following packages are installed (or in your case the first 3):
gambas2-gb-db
gambas2-gb-db-firebird
gambas2-gb-db-form
gambas2-gb-db-mysql
gambas2-gb-db-odbc
gambas2-gb-db-postgresql
gambas2-gb-db-sqlite
You can see the Beginners Guide with a very verbose explanation about
databases on Gambas.
http://vectorlinux.osuosl.org/Uelsk8s/gambas-beginner-guide.pdf
Supposedly, the big difference between the different db drivers is
only on the connection string.
On Fri, May 15, 2009 at 5:34 PM, cristian abarzua <abarzuaf at ...626...> wrote:
> Hello.
>
> I tried the ODBC, but can not connect. This odbc is there to download it
> from somewhere?
>
> Regards
>
>
> 2009/5/15 cristian abarzua <abarzuaf at ...626...>
>
>> Hello
>>
>> I tried to connect to the firebird server on my computer with the following
>> instructions:
>>
>> PUBLIC SUB Button1_Click()
>>
>> DIM $hConn AS NEW Connection
>>
>> WITH $hConn
>> .Type = "firebird"
>> .Host = "localhost"
>> .Login = "SYSDBA"
>> .Password = "xxxxx"
>> .Name = "employee.fdb"
>> END WITH
>>
>> TRY $hConn.Open
>> IF ERROR THEN PRINT "La base de datos no puede ser abierta. Error = ";
>> ERROR.Text
>>
>> END
>>
>> Unfortunately I said:
>>
>> "Can not find driver for database: firebird"
>>
>>
>> When I select the project, choose database, but when using the manager, I
>> did not sample the database.
>> Attached image
>>
>> [image: firebird.png]
>>
>> Anyone managed to connect to firebird?
>>
>> Regards.
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
More information about the User
mailing list