Create Database with Zeos V7

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
mmvisual
Senior Boarder
Senior Boarder
Posts: 51
Joined: 13.10.2010, 14:55

Create Database with Zeos V7

Post by mmvisual »

Hello,

For creating a new database and tabes with Zeos V6.6.6, I have set in
TZConnection.Database := '';

And then use the command "CREATE DATABASE" in a TZQuery.

But it does not work with Zeos V7, it will/must have a Database.

The Workaround:

For MySQL: TZConnection.Database := 'information_schema';
For PostgreSQL: TZConnection.Database := 'postgres';
SQLite is no problem, the DLL make self always a new Database.

Regards, Markus.

PS: Now, I use the ZeosV7 SVN1159 from here:
https://zeoslib.svn.sourceforge.net/svn ... gonhugeist
ism
Zeos Test Team
Zeos Test Team
Posts: 202
Joined: 02.10.2010, 20:48

Post by ism »

Maybe http://forum.vingrad.ru/faq/topic-157457.html

or ZConnection1.ExecuteDirect
Lazarus 1.0.8 fpc 2.6.0
Locked