Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IDbCommand IDbDataParameter logistics
Message
De
02/01/2004 10:44:26
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00863398
Message ID:
00863449
Vues:
12
Hey Rick,

That is a tricky one ... it looks to me like it's blowing up on the
int index = Command.Parameters.Add("@PkField");
statement. I tried changing it to:
int index = Command.Parameters.Add(Row[PkField]);
and it still didn't like it. From the error message, it looks like it's expecting to be adding an already defined Parameter and I can't figure out how to create that Parameter object using only IDbDataParameter. The error says:
The SqlParameterCollection only accepts non-null SqlParameter type objects, not Int32 objects.
Have you figured it out yet?

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform