Article View: borland.public.cppbuilder.database.ado
Article #965Cannot perform this operation on a closed dataset ?!
From: Vladimir Stefanovic
Date: Thu, 17 Feb 2005 21:53
Date: Thu, 17 Feb 2005 21:53
27 lines
1455 bytes
1455 bytes
Hi,
There is a weird thing happened to me today with opening
ADO connections in the most simpliest example I have shown
in my previous post. I made many ADO programs so far and
never had such problem.
For example:
ADOConnection1->Connected = true;
ADOTable1->Open();
ADOTable2->Open();
if ( ADOTable1->Active )
{
ADOTable1->...do something ...
// Cannot perform this operation on a closed dataset ???!!!
}
That means ADOTable1 *is* active but system thinks it's closed!
When 'Active' is set at design-time everything went OK. Why?
Best regards,
Vladimir Stefanovic
Technical Details
Message-ID:
<42151246@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,3533bda5a428c942,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.database.ado Subject: Cannot perform this operation on a closed dataset ?! Date: Thu, 17 Feb 2005 22:53:21 +0100 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 82.117.212.65 Message-ID: <42151246@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108677190 82.117.212.65 (17 Feb 2005 13:53:10 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail