ssrs report display blank on browser for 2997 rows of data and stored procedure timing is 42 secounds - reporting-services

all data displayed in stored procedure but not in SSRS report on internet explorer,2997 rows of data and stored procedure timing is 42 secounds. if filter is applied then working properly but if by default all is selected then can't display.

This sounds like a problem within the multi parameter within the stored procedure.
You will need to create a function on the server to split the comma-delimited string into values that can be used in “IN” clause or operator.
Example can be found at :enter link description here

Related

MySQL + SSRS | Stored Procedure only returns one single row

I'm working on several reports for SSRS written in MySQL via ODBC Adapter. For some reason, Stored Procedures only return a single row of data instead of an expected set of data.
Below is the same stored procedure when ran on an SQL Editor:
And below is the stored procedure's execution result when SSRS tries to run it (both on Query Designer and Report Viewer):
I have also set parameters properly as far as i can tell:
so i wasn't able to find an exact answer as to why this happens on SSRS with MySQL via ODBC. What i was able to find was a workaround:
by executing the command as an Expression rather than as a raw query via the Query Editor:
Now the only caveat for this is that the DataSet Fields wouldn't be automatically generated, and that you have to plot them all manually. A good workaround for this is to first run a blank/null query with only the column names (i.e.: SELECT NULL 'column_name_1', NULL 'column_name_2') then later change the query source to Expression. The good thing about using expression is that you only need minor knowledge about how it works and it reduces the confusion with ODBC '?' Parameters.
Cheers!

SSRS won't read my SQL query parameters

I'm trying to plot data to a shapefile in SSRS. I linked my SQL Server successfully and selected my Stored Procedure, but when I go to set my Spatial and Analytical Dataset Fields SSRS tells my
Procedure or function 'uspStoredProcedure' expects parameter '#eventId', which was not supplied.
I don't understand because I explicitly entered eventId on the page directly before this, ran the query and everything came up just as expected.

SSRS call stored procedure using ReportItems! textbox. Maybe custom report code?

I need to call a stored procedure during my report to insert values into a table. These values are the result of fields from the dataset added. For example, I have a row of values, and the far right column is "ReportItems!TextBox1.Value + ReportItems!TextBox2.Value ..." This gives the correct total on the report. Now I need to call a procedure using this value as a parameter.
Using a stored procedure as a dataset, I am unable to reference the ReportItems! I am also unable to create additional report parameters (even internal or hidden) which could be a result of a dataset due to the reporting infrastructure we are using.
I know using custom report code, I can call a stored procedure and also reference the ReportItems, but I have been unable to find the correct syntax. I am not familiar with VB.net so please be specific. If i could get an example of how to call: Procedure TEST_INSERT(ReportItems!TextBox1.Value), I would be able to figure out how to implement it.
I am using an oracle backend as my data source.
Thanks
If I've understood you correctly, you want to do an database update using a value calculated with an expression in your report. My answer to this would be threefold.
First up: don't do it!.
Second: seriously, don't do it!! Reporting services is not meant or well suited for this kind of task, you most likely are looking at an XY-Problem.
Third, if you insist on doing it anyways, the easiest way I can think of to accomplish that is by using a seperate report to trigger the update, and pass the value you're after into a parameter for that report. In the main report, you set a click action on the cell with the total that calls the report, with the same value into the parameter.
A similar setup which may work as well, is to create a parameter based on the first dataset with that same "sum" expression you mention, and pass that down to another dataset.
However: don't do it! ;-)
I would set up a dataset in the report service that calls an update or insert function in oracle and returns a value/s. This way you can send in the total you need calculate and produce a result telling the user if the update was successful.
There is no special method for doing this just select or enter your procedure name and refresh the fields to update the parameter/s. See Oracle stored procedure in SSRS.
Also using this method you can run the stored procedure in oracle, update the table and display the results.

SSRS returning different results than the stored procedure

I have a stored procedure that I can call from Management Studio and it returns 56 rows consistently. However, when I execute the query under from inside of ssrs 2008, I get back 61 rows. The stored procedure uses cursors and has some print statement inside of it.
Thanks,
I had a similar problem when I had an a stored procedure return warnings messages. It caused problems returning inconsistent results just in my SSRS dataset/report. I set ansi-warnings to off and my problem went away. You may want to comment out your print statements and try that.
Thanks,
Steve
I would do two things.
Check that the SSRS report is not using cached data - it often does.
If that doesn't help... within your SP write to a table in the DB the params coming in and the data being output. That should point you in the correct direction.
In SSRS, I was trying to pass null as the value of a parameter to a stored procedure. It seemed that no matter what I tried SSRS was using 'null' which did not work with #Parameter is null inside the stored procedure.
I created a report parameter, called #Rs_null, with a default value of (null). I could then use that.
(Creating a report variable was no good since I could not pass that a stored procedure parameter.)
See also How to use stored proc with null parameters in SSRS?

SSRS 2008 Data sets

I am new to SSRS;
What I would like to know is whether it is possible to have a dataset based on a dynamic stored procedure i.e the stored procedure requires an input parameter from the report and then using that can call any of a set of 'sub-stored procedures' that all return datasets with the same columns.
Basically, no.
SSRS at design time looks at the output of the stored procedure. If it is variable then it may not parse it. The same happens if you use temp tables. Also, the output would have to be the same for each proc
Now, switching stored proc is the same using that parameter to show or hide data regions, each based on a different dataset/proc. This is how I'd do it.
Or different sub-reports (which is a data region) or a whole new reports
If the "sub stored procedures" are already written, then your approach could work by having the stored proc called by the report create a temp table, then populate it based on the passed parameter, then return data from the temp table.
If the "sub stored procedures" are not already written, another option is just to use a CASE statement and have multiple SELECTs in the stored proc called by the report.