Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching for tables in SSRS reports

Status
Not open for further replies.

Unravel

Programmer
Jul 5, 2013
5
US
WE have BI Management Studio 2008, 3.5SP1 and we have many reports in SSRS. Is there a way to search all reports for particular table names?
WE have to upgrade data in the tables and we would rather not go thru each report manually searching code.
Thanks for any help in advance.
 
Unless I am mistaken, you need to review each report anyway.

Couple of reasons: 1) If your queries are embedded in your report, you will need to change the schema. 2) If your report uses stored procedures, you still need to modify the report for the new schema.

All that being said, each report (the actual rdl file) is just an XML file. You could use a tool like grep or another file searching tool to check each file and look for/make changes as needed. But you will definitely want to validate each report after the fact to ensure they still work.

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
C#.NET Programmer
 
You should be able to use any text editor to look at an RDL item in your project folder, and search for a "datasource" and "dataset" entry to see how those are styled, and that may suggest a search pattern you can use in a text file search.

This should help you locate those that are using direct-entry SQL queries to populate the datasets. However, most will probably use a stored procedure for this so they would not contain any direct reference to a table.

-Jim-
 
Yes you should be able to search using a text search tool the RDL`s to be able to find direct references.

To find references within stored procedures on the SQL box i would use the free tool from Apex SQL called ApexSQL Search.

With this tool you can find a sting (in this case the table name) within all the stored procs.


Dan

----------------------------------------

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top