Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing Stored Procs With Params
Message
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00979533
Message ID:
00980248
Vues:
43
Kevin,

I'm going back over all this and I'm not sure I totally understand
the Fill() method's parameters.

You stated:
"The 2nd parameter for Fill() allows you to specify the name of
the datatable in the result set."

"... in the result set" - Does this mean that the dataset is named
after this parameter value?

Also, earlier in the sample you provided, you have:
ArrayList aSqlParms = new ArrayList();
aSqlParms.Add(new SqlParameter("@cUserID",cUserID));
aSqlParms.Add(new SqlParameter("@cPassword",cUserPassword));
Do '@cUserID' and '"@cPassword"' represent fields in the table
to map the parameter to?

Thanks


>Hey, Kevin,
>
>The 2nd parameter for Fill() allows you to specify the name of the datatable in the result set.
>
>If you step through the code, you'll notice that right after the fill() executes, the datatable's tablename property is automatically set to whatever you specified in the fill().
>
>Kevin
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform