Article View: borland.public.cppbuilder.database.ado
Article #3266Problem About TADOQuery And MDAC 2.X?
From: Mountain Lan
Date: Sat, 09 Nov 2002 02:12
Date: Sat, 09 Nov 2002 02:12
44 lines
2101 bytes
2101 bytes
Hi, friends, I am using BCB5 with SP1 and ADOExpress SP. My program works well on Windows 2000(SP3). But when softwares, which upgrade MDAC (such as SQL Server 2000, Visual Studio .Net, and so on) installed on my computer, my program crashed. My program can't run on Windows XP either, which has a newer MDAC too. There is something wrong with TADOQuery when working with newer MDAC. I found that TADOQuery component couldn��t execute a UPDATE or INSERT command once it had been used to retrieve dataset using SELECT command. My test codes are very simple: ADOQuery1->SQL->Text = "SELECT * FROM SYS_USER"; ADOQuery1->Open(); ADOQuery1->Close(); ADOQuery1->SQL->Text = "UPDATE SYS_USER SET STATUS = 'A'"; ADOQuery1->ExecSQL(); An exception is raised here: Access violation at address xxxxxx in msado15.dll. If I never use TADOQuery component to open a dataset, but use it to update data only, this exception will never be raised. What's wrong in it? I've tried to install MDAC 2.6 SP1, MDAC2.6 SP2, MDAC 2.7 on my computer, but couldn't eliminate this error. Thank you very much! Mountain
Technical Details
Message-ID:
<3dcc6f2b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,342bf5b350cbdf1,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-11-08 18:20:03 PST Reply-To: "Mountain Lan" <swatow@sina.com> From: "Mountain Lan" <swatow@sina.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Problem About TADOQuery And MDAC 2.X? Date: Sat, 9 Nov 2002 10:12:27 +0800 Lines: 51 Organization: Ideal Tech X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 61.174.184.128 Message-ID: <3dcc6f2b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1036807979 61.174.184.128 (8 Nov 2002 18:12:59 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail