[prev in list] [next in list] [prev in thread] [next in thread]
List: gambas-user
Subject: Re: [Gambas-user] little disapointment with DB
From: Benoit Minisini <gambas () users ! sourceforge ! net>
Date: 2003-11-18 16:37:51
[Download RAW message or body]
Le Lundi 17 Novembre 2003 18:53, Olivier Coquet a écrit :
> how can i know if a database exist or not???
>
> To know if connection between my progy and mysql, i can catch an error but
> if my connexion is ok i can't know if a specific database exist or not
>
> i've seen a .ConnectionDatabase.Exist but i d'ont understand how i can use
> it......
>
>
> Regards
> olivier
>
>
You must connect to the database, with a null database name, and then use
MyConnection.Database.Exist(DatabaseName) to know if a database exist in the
server.
Look in the code of the gambas database manager ! :-)
I help you: take the function CServer.RefreshDatabase.
Regards,
--
Benoit Minisini
mailto:gambas@users.sourceforge.net
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic