🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: VFP OLEDB Provier Bug?

#1345
From: Viatcheslav V. Vassiliev
Date: Fri, 23 Jul 2004 15:41
44 lines
2612 bytes
Server-side cursor may be read-only - it is allowed by OLEDB specification
and depends on OLEDB provider. On MS SQL Server server-side cursor is
read-only if there is no primary key.

Client-side cursor does updates by executing SQL query such as:

UPDATE tablename SET colX = .... WHERE ...

To correctly implement WHERE primary key should present, otherwise it is
possible that row can not be located or WHERE points to some rows instead of
one.

Anyway it is very good idea to add primary key to every table.

//------------------------------------------
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)

"Orlando Lopez" <hlopezrd@hotmail.com.do> �������/�������� � ��������
���������: news:41012168@newsgroups.borland.com...
>
> Hi to all,
>
> I'm trying to use CFP OleDB Provider to access (and modify)
> VFP 6 tables. I tried to use odbc, but is very slow, so I'm
> trying to use OLEDB Provider (from microsoft) for VFP.
>
> Everything work fine, except that when I do a refresh to a table
> I got an error message:
> "Insufficient key column information for updating or refreshing"
> (the tables don't have index or primary key)
>
> Reading some info from Microsoft web site, I found that that can
> be fixed if I change the CursorLocation property to clUseServer,
> and that fix the problem of doing refresh, but that modify the
> readonly property to true, and I don't know why.
> Is a bug? or I'm doing some wrong?
>
>
> Orlando.
Technical Details
Message-ID: <410131a4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41012168@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,79e952bb33042916
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <41012168@newsgroups.borland.com>
Subject: Re: VFP OLEDB Provier Bug?
Date: Fri, 23 Jul 2004 19:41:24 +0400
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 213.234.218.42
Message-ID: <410131a4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090597284 213.234.218.42 (23 Jul 2004 08:41:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail