Article View: borland.public.cppbuilder.database.ado
Article #1796Re: How to access SET an ADODataSet->Properties ?
From: Giuliano
Date: Wed, 28 Jan 2004 14:50
Date: Wed, 28 Jan 2004 14:50
69 lines
3159 bytes
3159 bytes
On Wed, 28 Jan 2004 14:51:30 +0100, "Stefano" <s.dardari@tin.it> wrote:
>Ciao Giuliano,
>
>> try to use the Value property. Have a look at the following snippet
>> (untested):
>>
>> const WideString PropertyName = "Jet OLEDB:Flush Transaction Timeout";
>>
>> _di_Properties Properties( ADODataSet1->Recordset->Properties );
>> Properties->Item[ PropertyName ]->Value = 2000;
>
>thanks again for your help!
>
>I've tried also with this code, but result don't change.
>
>I't seems that the PropertyName "Jet OLEDB:Flush ... ecc..." does not exist.
>I've also tried with other PropertyName values (I've got from Microsoft ADO
>site) but it does not work! :-(
>
>Are this Properties valid also for ADODataSet component ?
>Or are valid only for ActiveX ADOX component ?
>
>I've nevere specified that I use the ADODataSet Component from ADO BCB6
>palette.
>Do I've to use other components ?
>
>Nobody have used ADO properties before ?
>
>Thanks again.
>
Hi Steve,
you could try to list all the properties of your dataset with a snippet
like the following:
// make sure your dataset is opened
ADODataSet1->Active = true;
_di_Properties Properties( ADODataSet1->Properties );
WideString PropList;
for ( int Idx = 0 ; Idx < Properties->Count ; ++Idx )
PropList += Properties->Item[Idx]->Name + " = " +
Properties->Item[Idx]->Value + "\r\n";
If you place a TMemo onto a form, you can assign the retrieved list to the
TMemo in this fashion:
Memo1->Lines->Text = PropList;
In this manner, you can see all the properties of the dataset.
In the same fashion, you can investigate the properties of the associated
TADOConnection. Simply you have to substitute the line
_di_Properties Properties( ADODataSet1->Properties );
with the line
_di_Properties Properties( ADODataSet1->Connection->Properties );
Buona fortuna.
Ciao
Giuliano
Technical Details
Message-ID:
<4017ca8d.525610888@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40156a5a$1@newsgroups.borland.com> <40162f62@newsgroups.borland.com> <38nc10pl11qf6efonis8aurhk0bjil34pp@4ax.com> <40166cd4@newsgroups.borland.com> <l6sc10p10i00jr878biqs22htn3ikmaems@4ax.com> <401685f0@newsgroups.borland.com> <74gd1096l31c5omlbsvfvmcck1v70uiupo@4ax.com> <4017be6a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,381735cb69b5c95 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-28 07:10:37 PST From: gcardinali@remove_adhoc.net (Giuliano) Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: How to access SET an ADODataSet->Properties ? Date: Wed, 28 Jan 2004 14:50:58 GMT Message-ID: <4017ca8d.525610888@newsgroups.borland.com> References: <40156a5a$1@newsgroups.borland.com> <40162f62@newsgroups.borland.com> <38nc10pl11qf6efonis8aurhk0bjil34pp@4ax.com> <40166cd4@newsgroups.borland.com> <l6sc10p10i00jr878biqs22htn3ikmaems@4ax.com> <401685f0@newsgroups.borland.com> <74gd1096l31c5omlbsvfvmcck1v70uiupo@4ax.com> <4017be6a$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.5/32.451 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 82.89.247.6 X-Trace: newsgroups.borland.com 1075301687 82.89.247.6 (28 Jan 2004 06:54:47 -0700) Lines: 71 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail