Add on to SP in SSRS - sql-server

Was wondering if anyone knew if it was possible to add on to a stored procedure using SSRS? I have a stored procedure in SQL Server that is manipulating data to create a great base. I then want to use that stored procedure and transform it some more inside SSRS depending on the reports I am doing.
Is this even possible?
Thanks,

Related

Retrieve SQL Server Stored Procedure Sql using Delphi

I am trying to display T-SQL of stored procedure in my delphi application.
I have no idea whether it is possible using ADO or Firedac components. I am able to get list of stored procedures using firedac but not sql.
Need to be pointed to the right direction so that i can add this feature in my application.

Access last table in a stored procedure from report builder

I have a stored procedure witch runs several EXEC commands. As a result it returns more than one table. In SQL Server Report Builder or SQL Server Data Tools (SSDT) I can only access the first table it retrieves from this stored procedure. But I need to access last table, in which contains the merged columns from different tables produced by different stored procedures.
I have tried the hide tables other than the last table, but failed. Is there any suggestions you can offer to solve this problem. I appreciate and thank with all my hearth to whom tries to contribute the solution of my problem.
I found a solution for this problem. It is not quite what I have asked but solves this issiue. Here is the solution:
I have edited all sub-stored procedures that I used to "RETURN 0" to prevent them to give an output. So when I call them from Main stored procedure they have no visible output at the "Results" window. Only the Main stored procedure has a single output. Thus I can use it in Report Builder or SSDT like a normal stored procedure without any more modification.

solution instead of stored procedure in SQL Server 2008

I have a database which has many stored procedure which execute in the first of month. They should read based on rules from some tables and insert calculated results on other table. There are huge number of queries. Can I find another better solution instead of stored procedures?
SQL Server 2008
If you really wanted to you could write a service (e.g. windows service) to do the work but I would suggest stored procedures are probably best. This of course does depend on what the procedures do.

I would like to echo/access the filter or where clause in my stored procedure in SQL 2005 when called called from Access .adp report

I am calling a report which is linked to a stored procedure from my Access 2010 .adp file
For example:
DoCmd.OpenReport "r_my_report", acPreview, , "xxx=" & Chr(34) & xxx & Chr(34)
Is it possible to echo the where clause or the filter parameter and do some logic on it in the stored procedure? Do these parameters come into the stored procedure in a way that you can use them, or does access just feed them directly to the SQL engine behind the scenes? Can I even just echo or log the actual query that is executed?
I am climbing the learning curve on this, so thanks in advance for your help.
An Access .adp provides a fairly direct interface to SQL server, the stored procedure you see in the adp is an actual stored procedure in SQL Server database.
You have a report based on a stored procedure with a filter, what is probably happening is the stored procedure is executed with it's parameters, the data set is then passed back to the client where it is then filtered by the client.
If you'd used a view instead of a stored procedure then the query would probably converted and passed to the sql server, the server's optimiser would then have worked out a plan to optimise it's execution including the fields from the where clause.
To find out what is happening on the server use the SQL Server Profiler, this will give you a list of all queries as the run against the server along with some statistics. You may find access is being cleverer than you expect.

Problem ReCreating Access report in Crystal Reports

I'm trying to recreate an access report as a crystal report and I'm having trouble.
Basically, the Access report runs a stored procedure (which returns nothing, but populates tables), then those tables are queried to display the data on the report.
So I'm trying to figure out how to run the procedure with parameters from a crystal report. I've got the second part fine, if I run the procedure manually, then display the report I get the appropriate data.
How can I execute the stored procedure before querying those tables from Crystal Reports???
Have you tried combining the stored procedure and the queries into one stored procedure? Execute the one that populates the tables, and then run the queries that return the data?
Use Visual Studio (Assumes you were using Access, so you may be a Microsoft shop.) to create a form that triggers the stored procedure and then opens the Crystal Report.
This way users don't have to have Crystal Reports installed. Just your app.
Can you get away with a combined Access & Crystal approach?
The Access db prompts the user for parameters and does whatever it needs to get & filter the data from the db.
Crystal generates it's report using the Access db as it's source.
This would be like taking the original Access file, deleting just the report, and recreating just the report in Crystal, using the original Access queries as your source.

Resources