Article View: borland.public.cppbuilder.database.ado
Article #1159Re: TDataSet Update mode
From: Viatcheslav V. Vassiliev
Date: Fri, 08 Oct 2004 10:58
Date: Fri, 08 Oct 2004 10:58
104 lines
4407 bytes
4407 bytes
#include <comobj.hpp>
enum ADCPROP_UPDATECRITERIA_ENUM
{ adCriteriaKey = 0,
adCriteriaAllCols = 1,
adCriteriaUpdCols = 2,
adCriteriaTimeStamp = 3
} ADCPROP_UPDATECRITERIA_ENUM;
//This part is for C++ Builder 6, to avoid
//"Unresolved CheckAutoResult" error.
namespace System
{
void __fastcall CheckSafecallResult(HRESULT hr)
{
OleCheck(hr);
}
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
ADODataSet1->Active = true;
ADODataSet1->Properties->Item[WideString("Update Criteria")]->Value =
adCriteriaKey;
}
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Michele Santucci" <michele.santucci.nospam@nospam.celinavio.it>
�������/�������� � �������� ���������:
news:41665044@newsgroups.borland.com...
> Again I need to know how to do it in CPP Builder... what u wrote is good
for
> Delphi but in C++ Builder I haven't found the way to do it.. besides using
a
> TDataSetProvider that I really can't figure how
>
> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> ha scritto nel
> messaggio news:41657fc6$1@newsgroups.borland.com...
> > Automatically typed in Delphi.
> >
> > //------------------------------------------
> > Regards,
> > Vassiliev V. V.
> > http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
> > ADO.Net
> > http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> > MS Jet (Access) and Interbase (through OLEDB)
> >
> > "Michele Santucci" <michele.santucci.nospam@nospam.celinavio.it>
> > �������/�������� � �������� ���������:
> > news:416550aa@newsgroups.borland.com...
> > > I tought I posted in cppbuilder NG :-)
> > >
> > > "Viatcheslav V. Vassiliev" <support@oledbdirect.com> ha scritto nel
> > > messaggio news:41654cf0@newsgroups.borland.com...
> > > > In ADO, set TADODataSet.Properties['Update criteria'] :=
> adCriteriaKey.
> > Or
> > > > use TBetterADODataSet, it has property UpdateCriteria.
> > > >
> > > > //------------------------------------------
> > > > Regards,
> > > > Vassiliev V. V.
> > > > http://www.managed-vcl.com - using .Net objects in Delphi for Win32
+
> > > > ADO.Net
> > > > http://www.oledbdirect.com - The fastest way to access MS SQL
Server,
> > > > MS Jet (Access) and Interbase (through OLEDB)
> > > >
> > > > "Michele Santucci" <michele.santucci.nospam@nospam.celinavio.it>
> > > > �������/�������� � �������� ���������:
> > > > news:416548d8$1@newsgroups.borland.com...
> > > > > Hi NG,
> > > > >
> > > > > Is it possible to change the TDataSet mode from upWhereAll to
> > > > > upWhereKeyOnly ?
> > > > >
> > > > > --
> > > > > ================================
> > > > > Michele Santucci
> > > > > Software Development Manager
> > > > > Celin Avio S.r.l.
> > > > > Via Fontevivo, 21/M 19100 La Spezia
> > > > > tel. +39-0187564080
> > > > > ================================
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID:
<416672d6$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<416548d8$1@newsgroups.borland.com> <41654cf0@newsgroups.borland.com> <416550aa@newsgroups.borland.com> <41657fc6$1@newsgroups.borland.com> <41665044@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,4a14147763e7bf20 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <416548d8$1@newsgroups.borland.com> <41654cf0@newsgroups.borland.com> <416550aa@newsgroups.borland.com> <41657fc6$1@newsgroups.borland.com> <41665044@newsgroups.borland.com> Subject: Re: TDataSet Update mode Date: Fri, 8 Oct 2004 14:58:23 +0400 Lines: 106 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 213.234.218.42 Message-ID: <416672d6$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097233110 213.234.218.42 (8 Oct 2004 03:58:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail