:sorry: Database Connect Component is not Assigned delphi 7

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
azrael11
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 22.11.2010, 09:17

:sorry: Database Connect Component is not Assigned delphi 7

Post by azrael11 »

I connect with the database successfully
When i try to make some tables with this code in the Conf.ZQuery.ExecSQL; i get the above error

Code: Select all

cs := 'CREATE TABLE MainProgram'+
        '(Name TEXT(50),'+
        'NameExe TEXT(50),'+
        'Path TEXT(250),'+
        'Ver Text(50),'+
        'V1 Text(100),'+
        'V2 Text(100),'+
        'V3 Text(100),'+
        'V4 Text(100),'+
        'V5 Text(100),'+
        'V6 Text(100),'+
        'V7 Text(100),'+
        'V8 Text(100),'+
        'V9 Text(100),'+
        'V10 TEXT(100))';
  Conf.ZQuery.SQL.Clear;
  Conf.ZQuery.SQL.Add(cs);
  Conf.ZQuery.ExecSQL;

Please help
Last edited by azrael11 on 23.03.2011, 15:12, edited 1 time in total.
azrael11
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 22.11.2010, 09:17

Post by azrael11 »

So silly i forgot to make a connection of zquery and zconnection

Case Closed....
jeremicm
Senior Boarder
Senior Boarder
Posts: 61
Joined: 18.10.2006, 17:07
Contact:

Post by jeremicm »

Adding Conf.ZQuery.Close on top is good idea...
Post Reply