How can I tell if Database to exist?
for example
if UniConnect1.ExistsDataBase('MyDBName') then
DB creattion..
else
DB Open...
Unidac 6.02
How can I tell if Database to exist?
Re: How can I tell if Database to exist?
Hello,
Please specify the name of the DB you are using.
Please specify the name of the DB you are using.
Re: How can I tell if Database to exist?
Sqlite for Android(embedded).
Re: How can I tell if Database to exist?
To implement such behavior, you should set the ForceCreateDatabase option to True. In this case, if a database doesn't exist, it will be created automatically. Otherwise, the existing database will be opened.
P.S. Since SQLite is a file database, then for check it is enough to ensure file existence.
Code: Select all
UniConnetion.SpecificOptions.Values['ForceCreateDatabase'] := 'True';
Re: How can I tell if Database to exist?
Hi,
OK. Thanks a lot.
OK. Thanks a lot.
Re: How can I tell if Database to exist?
If you have any further questions, feel free to contact us.