Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Populating Dataset with Table-Valued Function
Message
 
À
03/08/2010 15:36:51
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01475027
Message ID:
01475083
Vues:
27
Ah, thanks Rob. It wasn't quite there but put me on the right track to make this work:
  public DataSet getCommitteeMembers(int iComId)
        {
            SqlCommand cCmd = new SqlCommand(String.Format("SELECT * FROM CommitteeMembers({0})",iComId));
            return this.GetDataSet(cCmd, "crsCommitteMembers");
        }
Works like a charm.

Thanks!

Eric

>Try this:
>
>
>public DataSet getCommitteesById(int iComId)
>{
>     return this.GetDataSet("SELECT * FROM getCommitteeMembers(@ComId)", this.CreateParameter("@ComId", iComId));
>}
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform