Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compiling myprogram.cs
Message
De
29/12/2006 17:38:35
 
 
À
29/12/2006 17:10:08
Information générale
Forum:
ASP.NET
Catégorie:
Déploiements
Divers
Thread ID:
01180878
Message ID:
01180993
Vues:
15
I see.
Thanks.

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 is:
"Cannot implicitly convert type 'int' to 'System.Data.OleDb.OleDbDataReader'

What does it not like?

Thanks Alex


>>What is the significance of "@" when initializing the variable strConn?
>>The code doesn't seem to work without it and I haven't seen it in other examples I've seen.
>>>
string strConn = @"Provider=VFPOLEDB;Data source=
>C:\Program Files\Microsoft Visual FoxPro 9\Samples\Data\testdata.dbc;";

>
>
>It is a kind of replacement for escape sequence so you can easily write pathnames without having to double backslash everything.
>http://msdn2.microsoft.com/en-us/library/362314fe.aspx
The American Republic will endure, until politicians realize they can bribe the people with their own money.
- Alexis de Tocqueville

No man’s life, liberty, or property is safe while the legislature is in session.
– Mark Twain (1866)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform