Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# ADO Executing Stored Procedure Problem
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01374697
Message ID:
01374921
Vues:
9
>Now I'm confused.
>
>You have:
>
>
>sc.CommandText = "Insert into bob (xyz, abc) VALUES ( @xyz, @abc )";
>sc.Parameters.Clear();
>sc.Parameters.Add("@xyz", Row["xyz"]);
>sc.Parameters.Add("@abc", Row["abc"]);
>sc.ExecuteNonQuery();
>
>
>You could just as easily do:
>
>sc.CommandText = "Insert into bob (xyz, abc) VALUES ( @xyz, @abc )";
>sc.ExecuteNonQuery();
>
>
>So what do the parameters do?
>
>
Without Parameters statement it would not work. Your values @xyz and @abc mean nothing.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform