🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Help!! ADO Refresh causes error

#242
From: sam
Date: Thu, 04 Jan 2007 00:14
54 lines
2318 bytes
Vassiliev

Thank you for your reply.
I have a PK in the Table
What happens is if a record is changed by a second user on another PC
And I then change the record in the datagrid the application gives me a 
error
when I move to the next record.
How do I overcome this?

How do I refresh a client dataset without getting errors?

Thanks in Advance

Sam

"Vassiliev V. V." <support@oledbdirect.com> wrote in message 
news:459b8503@newsgroups.borland.com...
> Ensure that you have PK or at least unique index in table you are 
> refreshing.
>
> //------------------------------------------
> 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)
>
>
> "sam" <sam@nospam.com> �������/�������� � �������� ���������: 
> news:459b560c$2@newsgroups.borland.com...
>> Help
>>
>> The following line of code
>> DataMaster->MYTable->Refresh();
>>
>> gives me the following Message
>>
>> Debugger Exception Notification
>> Project my.exe raised exception class EOleException with Message 
>> 'Insuffient key column information for updating or
>> refreshing'
>>
>> How can I resolve this.
>>
>> TIA
>>
>> Sam
>>
>>
>>
>
> 
Technical Details
Message-ID: <459c47d0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <459b560c$2@newsgroups.borland.com> <459b8503@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,c0c512eb46ba2a2e
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "sam" <sam@nospam.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <459b560c$2@newsgroups.borland.com> <459b8503@newsgroups.borland.com>
Subject: Re: Help!! ADO Refresh causes error
Date: Thu, 4 Jan 2007 11:14:27 +1100
Lines: 56
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 59.167.234.166
Message-ID: <459c47d0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1167869904 59.167.234.166 (3 Jan 2007 16:18:24 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail