Article View: borland.public.cppbuilder.database.ado
Article #2766How to using BCB 5.0 to develop database application with DB2 Ver. 7.2 ?
From: Alan
Date: Wed, 02 Apr 2003 15:12
Date: Wed, 02 Apr 2003 15:12
21 lines
1718 bytes
1718 bytes
Hi, All:
I have a job that develop database application.
The environment be description as below:
OS: Windows 2000 Professional + SP2
Cmpiler: Borland C++ Builder 5.0
DB: IBM DB2 Universal 7.2
Now, I using ADO coomponent(TQuery) in thread to retrieve the DB2.
When I submit a SQL statement("Select * From TB_User"), The application
throw a exception.
The message of exception is "Project test1.exe raised exception class
eOleSysError with message 'Moniker not refer to database' Process stopped.
Use Step or Run to continue."
But, If I using ADO coomponent(TQuery) not in thread, It is OK.
Because we must develop multi-threades application. So, Please help us to
solve this problem!
Thanks!!
Technical Details
Message-ID:
<3e8afe0c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,e09c5022179b9538,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-04-02 07:18:58 PST Reply-To: "Alan" <sun@mail.welltech.com.tw> From: "Alan" <sun@mail.welltech.com.tw> Newsgroups: borland.public.cppbuilder.database.ado Subject: How to using BCB 5.0 to develop database application with DB2 Ver. 7.2 ? Date: Wed, 2 Apr 2003 23:12:29 +0800 Lines: 23 Organization: Welltech X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 61.220.126.20 Message-ID: <3e8afe0c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049296396 61.220.126.20 (2 Apr 2003 07:13:16 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail