Re: OleDb DataFactory bug. Watch out.



Bob,

I almost would NEVER use the OleDbFactory class to generate commands for
me. SqlFactory is one thing, since it is tailored specifically for Sql
Server. However, OleDb has to deal with a plethora of different providers
(the same thing applies for the OdbcFactory as well).

Are you writing a general-purpose tool, or are you writing something
more specific?

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"Bob" <bob@xxxxxxxxxxx> wrote in message
news:O72lg8bCHHA.3228@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Using the OleDb factory.
Asked it to insert 4K records into a SQLAnywhere database table.
Runs out of steam at record 244 and starts writing corrupted versions of
243 primary index column until at 248 it hits a variation it has already
written and fails with a non-unique primary index error.

Use a hand rolled OleDb command and the data is written OK. Likewise the
SQL
Factory writes the same data to an SQLServer OK.

It is not a race condition as you can step through the failing iteration
and
it still fails.
So...
Stay away from the OleDb Data factory until it is repaired.
Bob






.



Relevant Pages

  • Re: Parameters Question
    ... you can get it to work in OLEDB for SQL by ... > But as I said in my post, I have never been able to get named parameters ... > work in OLEDB for SQL Server. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Error adding command properties for stored procedure call
    ... however it closely resembles the OleDb samples provided by Microsoft. ... ICommandText interfaces to call a stored procedure, ... Links for SQL Server Books Online: ...
    (microsoft.public.data.oledb)
  • Re: VFP ODBC
    ... to 'get to the data file' and if yer not using the right version of an oleDB ... driver set for VFP. ... I know you don't have v9 - but if I had to sling data into a sql server - ... Save non-verified file DSN? ...
    (microsoft.public.fox.helpwanted)
  • Re: OleDb contra SqlClient
    ... >> kostet das mit ner Factory spezifisch zu lösen, ... > nur wissen, was an OleDB so schlecht ist, und jetzt unterstellst du ihm ... > Nette Bugs hier und da. ... > Keyboard Error or No Keyboard Present ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: OleDb contra SqlClient
    ... >> kostet das mit ner Factory spezifisch zu lösen, ... > nur wissen, was an OleDB so schlecht ist, und jetzt unterstellst du ihm ... > Nette Bugs hier und da. ... > Keyboard Error or No Keyboard Present ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)