Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone using MM.NET with OleDB Providers?
Message
De
15/02/2005 05:32:38
 
 
À
14/02/2005 22:46:39
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brésil
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00986888
Message ID:
00986927
Vues:
32
Hi Eugenio,

try omitting the questing mark in the delete parameter statement:
instead of:
//
// oleDbDeleteCommand1
//
this.oleDbDeleteCommand1.CommandText = "DELETE FROM texto WHERE id_texto=?";
this.oleDbDeleteCommand1.Parameters.Add(new System.Data.OleDb.OleDbParameter("?id_texto",System.Data.OleDb.OleDbType.Integer, 0, "id_texto"));

try:
//
// oleDbDeleteCommand1
//
this.oleDbDeleteCommand1.CommandText = "DELETE FROM texto WHERE id_texto=?";
this.oleDbDeleteCommand1.Parameters.Add(new System.Data.OleDb.OleDbParameter("id_texto",System.Data.OleDb.OleDbType.Integer, 0, "id_texto"));

Regards, Soenke
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform