Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populating Dataset with Table-Valued Function
Message
 
To
03/08/2010 15:36:51
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01475027
Message ID:
01475083
Views:
26
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));
>}
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform