Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Provider=VFPOLEDB.1
Message
De
10/09/2002 07:41:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Problem with Provider=VFPOLEDB.1
Divers
Thread ID:
00698693
Message ID:
00698693
Vues:
65
I have a problem using a foxpro database with this oledb provider, i cannot use OleDbCommand with parameters:

string strConnection = @"provider=VFPOLEDB.1 ;data source= 'C:\APLICACIONWEB\Gfijos.DBC';password='';user id=''";

OleDbConnection cnn = new OleDbConnection (this.strConnection);
cnn.Open();
OleDbDataAdapter myDataAdapter = new OleDbDataAdapter();

myDataAdapter.DeleteCommand = new OleDbCommand("DELETE FROM gsocios WHERE Codigo=@CODIGO",cnn);
myDataAdapter.DeleteCommand.Parameters.Add ("@CODIGO",OleDbType.Integer,0,"Codigo");
myDataAdapter.DeleteCommand.Parameters["@CODIGO"].Value = int.Parse(cod_text.Text);
myDataAdapter.DeleteCommand.ExecuteNonQuery();
myDataAdapter.Update(ds,"gsocios");
an a error producer
Répondre
Fil
Voir

Click here to load this message in the networking platform