Connecting to a dynamic Stored procedure
Hi,
I have a situation where I have an existing desktop windows application developed using .Net and crystal reports.
Report is pulling the data using Dataset, but the dataset is using dynamic table as shown below
public DataSet GetReportPayrollPrintCheckSource(int payrollID, DateTime checkDate, bool allEmployees, DataTable selectedEmployeeList)
{
IList<DbParam> parameters = new List<DbParam>
{
new DbParam("@PayrollID", (object)payrollID),
new DbParam("@CheckDate", (object)checkDate),
new DbParam("@AllEmployees", (object)allEmployees),
new DbParam("@EmployeeIDs", (object)selectedEmployeeList)
};
using (DatabaseHelper dh = new DatabaseHelper())
{
var results = dh.ExecDataSet(Constants.uspReportPayrollPrintCheckSource, parameters);
results.Tables[0].TableName = Constants.uspReportPayrollPrintCheckSource + ";1";
results.Tables[1].TableName = Constants.uspReportPayrollPrintCheckSource + ";2";
return results;
}
}

Stored procedure is having two select statements and the above data source is pulling data from the 2nd select statement (2nd dynamic table. hence the above name is showing as <dataset>;2)
I want to include another select statement withing the same stored procedure and pull the fields from the dynamic table with a new dataset as <dataset>;3, how can I achieve that?
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 563 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 243 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 779 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)