In a BIDS project, after selecting Reports > Add New Report, and adding a connection string as the Shared Data Source in the Report Wizard, the wizard next prompts for a query (in the "Design the Query" page of the wizard).
I want to specify an existing Stored Procedure. How can I do that? Is it possible to specify it directly in the connection string? e.g, I provided something like this as the connection string:
SERVER=GoCards2016;DATABASE=platypusdata;UID=duckbill;PWD=dannyAndTheJuniors;Connection Timeout=0
Can I also insert the Stored Procedure to use in there somewhere?
Or do I need to enter a bogus query in the "Design the Query" page of the wizard and later replace it in the .rdl (xml) file with the Stored Procedure name? Or...???
The Report Wizard will let you only use Query strings so you can't select a stored procedure, but You can use the EXEC
statement to specify a stored procedure to run.
exec my_stored_procedure_name
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments