Howto do Database-Connectivity in a Delphi Console App (as CGI)

Hi!

How can i do Database-Connectivity in a Delphi Console App (as CGI)?

i've tried to encapsulate the DB-Components (specially: TQuery) into a
Module (TDataModule), but when i call  "DBModule.Query.Open" (my
runtime-names) i get an access violation error.....

Any help (also common)...?

Gruss, rd u, Klaudio!
+-------------------------------------------------+
Sign  : Klaudio Kaiser - Bondbox Telekommunikation
E-Mail: kai...@bondbox.com
+-------------------------------------------------+