Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't insert into VFP table
Message
De
30/12/2006 15:06:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/12/2006 20:38:21
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01181015
Message ID:
01181082
Vues:
9
>I'm trying to insert a record into customer table (foxpro).
>
>I'm using ...ExecuteNonQuery();
>
>My insert statment looks like this:
>sqlCom = "INSERT INTO customer (cust_id, company, contact) VALUES ('SAMAHN', 'SKAHN REST', 'Sam Ahn')"
>
>
>The error I keep getting is:
>"Cannot implicitly convert type 'int' to 'System.Data.OleDb.OleDbDataReader'
>
>What does it not like?
>
>TIA.

Sam,
DataReader is for reading data forward only fast. Here is a sample for insertion:
Re: Using OleDbParameters and FOXPRO MEMO Fields Thread #1026872 Message #1026953
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
Répondre
Fil
Voir

Click here to load this message in the networking platform