Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating Records in an MS SQL CE Database
Message
De
26/05/2009 12:46:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/05/2009 23:59:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01401914
Message ID:
01401987
Vues:
54
>I am trying to insert records into a .net local data table (SQL Compact Edition .sdf File)
>
>I am using a cursor adapter since these is no ODBC driver for this.
>
>I can open the table just fine but I cannot get an insert to work. Is it possible to insert into an ADO table?
>
>This is what is being returned by aerror after the tableupdate()
>
> ( 1, 1) N 1435 ( 1435.00000000)
> ( 1, 2) C "Microsoft Cursor Engine : Multiple-step operation generated errors. Check each status value."


John,
AFAIK SQL server CE is not updatable via OLEDB using recordsets (unless opened as table direct). MS would think about an update, I don't know if they did or not. Workarounds would be to use separate insert/update commands or use some .Net wrapper activex that uses .Net managed driver.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform