Database Alias

jabarreras

Member²
With TQuery component you have the DataBaseName property where you can use an ALIAS Database, so you can use the form where TQuery is located in any project (think of different projects that share this
 
Good question!

there are three posibilities:
1st: don't be ungry but maybe your "idea" is not good (from OOD point of view). You should change this. If you want - I can help you, but contact with my be my private email.

2nd: (easiest) override constructor for utiliti form and add new parameter: session:
constructor Create(ASession : TOracleSession; AOwner : TComponent)
and in this method set session to your queries.
3rd: create in all projects module colled: DatabaseModule where you put your session. Connect utility form with this creazy module and it should works. But this is terrible...

I prefer 1 or 2

Regards
Lukasz Z.
zlukasz@hotmail.com
 
Back
Top