🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2974

Problem with ADODataSet

#2974
From: Matrix
Date: Mon, 13 Jan 2003 15:01
19 lines
1516 bytes
I've a problem with TADODataSet component: in my form there are a
TADOConnection (which name is "conn") and TADODataSet (which name is "rs").
The ConnectionString property of TADOConnection value is :
Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=D:\SCMV\DBConf\SMCV_Config.mdb;Mode=ReadWrite|Share Deny None;Persist
Security Info=False

This is my code:

rs->Connection = conn;
rs->CommandType = cmdText;
rs->CommandText = "SELECT * FROM MODULE";
rs->Open();

The program gives me an EOleException (unspecified error) in the last
statement.
Any suggest???
How can I open a result set and retrieve values with these component???
TIA.
Technical Details
Message-ID: <3e22d4c2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,d8356b91db362088,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-01-13 07:10:05 PST
From: "Matrix" <flavio.bariLsonLe@elLsag.Lit>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Problem with ADODataSet
Date: Mon, 13 Jan 2003 16:01:16 +0100
Lines: 21
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: 194.243.48.2
Message-ID: <3e22d4c2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1042470082 194.243.48.2 (13 Jan 2003 07:01:22 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail