TDataBase and TQuary
- From: Anton <anton.txt@xxxxxxxxx>
- Date: Sun, 28 Oct 2007 23:33:18 +0000 (UTC)
Hi all,
Can you help me with setting up a TDatabase so that it would allow to
explicitly control a DB connection instead of using the TDatabase that's
created at Run Time automatically?
I did the following (all in Run Time):
1. Create a TDatabase
2. Set its DatabaseName to my DB's Alias (as in BDE)
3. Call the Open method
4. Create a TQuery
5. Set its DatabaseName to that of TDatabase
6. Use it.
But that doesn't work for some reason. If I suddenle Close the
TdataBase, the TQuery continues working happily... From which I conclude
it's not using _my_ TDatabase.
Thanks in advance,
Anton.
.
- Follow-Ups:
- Re: TDataBase and TQuary
- From: Maarten Wiltink
- Re: TDataBase and TQuary
- From: DB-1
- Re: TDataBase and TQuary
- Prev by Date: buy runescape gold,runescpae money!
- Next by Date: buy cheap runescape gold on http://www.cheap-runescape-gold.com
- Previous by thread: buy runescape gold,runescpae money!
- Next by thread: Re: TDataBase and TQuary
- Index(es):
Relevant Pages
|