How to Pass Parameters to the Stored Procedure

Stimulsoft Reports.WEB discussion
Post Reply
Mayagadu
Posts: 1
Joined: Thu Dec 10, 2009 12:34 pm
Location: Hyderabad

How to Pass Parameters to the Stored Procedure

Post by Mayagadu »

I need to pass parameters to the Stored Procedure. I have managed to create the Structure, but cannot pass the parameters dynamically.

How can I pass it, the video in the live demo shows how to use a stored procedure, but does not show how to pass the Parameter to the Stored Procedure.

Please help immediately.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How to Pass Parameters to the Stored Procedure

Post by Jan »

Hello,

Please check attached sample project.

Thank you.
Attachments
288.WebSqlParameters.zip
(851.66 KiB) Downloaded 1592 times
tynar
Posts: 25
Joined: Thu Mar 17, 2011 11:54 pm
Location: Kyrgyzstan

How to Pass Parameters to the Stored Procedure

Post by tynar »

I would appreciate a lot if you could place mrt source file too.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to Pass Parameters to the Stored Procedure

Post by Alex K. »

Hello,

Please see the sample report in attachment.

Thank you.
Attachments
1086.SQLParameters.mrt
(44.51 KiB) Downloaded 982 times
tynar
Posts: 25
Joined: Thu Mar 17, 2011 11:54 pm
Location: Kyrgyzstan

How to Pass Parameters to the Stored Procedure

Post by tynar »

Hello,

I have a report which shows next business day from stored procedure. So, I have added stored procedure to datasources which accepts one parameter named @StartDate and returns a date value.

In code behind I have set parameter as shown below:

report.DataSources["getNextBusinessDay"].Parameters["@StartDate"].ParameterValue = DateTime.Now;


But, I'm getting error even though I have set that parameter.

Your suggestion would be much appreciated.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to Pass Parameters to the Stored Procedure

Post by Alex K. »

Hello,

Can you please send us your report with sample data for analysis.

Thank you.
Alejandro323
Posts: 5
Joined: Mon Sep 07, 2020 1:09 pm

Re: How to Pass Parameters to the Stored Procedure

Post by Alejandro323 »

Greetings -!!
i have the same issue
I need to pass parameters to the Stored Procedure. I have managed to create the Structure, but the parameters not show in the browser
Lech Kulikowski
Posts: 7337
Joined: Tue Mar 20, 2018 5:34 am

Re: How to Pass Parameters to the Stored Procedure

Post by Lech Kulikowski »

Hello,

Please check the following article:
https://www.stimulsoft.com/en/blog/arti ... ql-queries

Thank you.
Post Reply