I am starting to create more ‘complex’ SSRS reports now, and am finding that the Query Buffer on the server is being hit as the queries are too large.
As opposed to increasing the buffer, the recommendation has been made to try Store Procedures.
Now, I have tried to hunt online for a complete step-by-step for this but the information I am getting is in dribs and drabs.
Can anyone please list step by step how to create the store procedure and where this is done, how this is then used in Visual Studio as the datasource, the creation of the report is OK I am fine with creating the report, then please explain if the process for the report deployment is different?
I’m in the same boat right now. I’m on the brink of figuring out how to call the SP from an AX data provider class which is where I’m stuck. However, I’m able to point you in the right direction though until I settle the rest.
Stored procedures are contained on the database side and written in SQL. You can use Microsoft SQL Server Management Studio for development. You will need a good knowledge of the table structure how the data joins on the back-end. Google “writing stored procedures” for a quick tutorial. When I figure out how to return the results to a report, I’ll post my steps (Although I’m using AX 2012).
In my document, the SQL command is stored in a string:
sql = “EXEC STOREDPROCEDURENAME”;
This can be concatenated dynamically:
string parm = “2012”;
sql = "EXEC STOREDPROCEDURENAME " + parm;
I haven’t had a need to do this yet, but to point you in (hopefully) the right direction, I would be to figure out how to get data from a custom form to this.