question

Gee avatar image
Gee asked

Can't Find Stored Procedure

I'm pretty new to this. I have a report in Visual Studio running off a Stored Procedure I need to manipulate it in SQL Server Management Studio. I didn't write any of this, I'm trying to repair it. I need to make some changes to the Stored Procedure, but can't find it anywhere, and it appears there are others that are missing too. Is there a way to find the path to the stored procedure from the report in Visual Studio? I've tried everything I can think of and I still can't find it. Any help would be greatly appreciated. Gee
ssrsstored-procedures
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

eghetto avatar image
eghetto answered
Right click on your datasource to see the properties. There you can find the connection string to your data source. Connect to this database using SSMS to find your stored procedure. Please notice: Datasets can also base on plain SQL code, that means your data can be retrieved form tables, views or even functions - not only stored procedures. So examine your dataset first.
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Gee avatar image Gee commented ·
Im sorry, could you explain that a little more in detail? I can see the connection string to the report, but not to the stored procedure.
0 Likes 0 ·
eghetto avatar image eghetto commented ·
I recommend you to use Microsoft's Report Builder (2.0 for SQL 2005 or 3.0 for SQL Server 2008 R2). This is a light weight tool compared to Visual Studio. Using Report Builder you can easily connect to your SSRS-Server and see all datasources which your report incorporates: http://www.microsoft.com/de-de/download/details.aspx?id=6116
0 Likes 0 ·
Shawn_Melton avatar image
Shawn_Melton answered
If you have the report open in Visual Studio you can simply look at the data table for the report (.rdl file). It will show you the exact code being executed for that specific report. (See image below for example). As already mentioned you can check your data source properties for the database the procedure is being executed from. If you need more than this let us know... ![alt text][1] [1]: /storage/temp/386-capture.jpg

capture.jpg (47.1 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.