INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Searching for tables in SSRS reports

Searching for tables in SSRS reports

(OP)
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.

RE: Searching for tables in SSRS reports

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

RE: Searching for tables in SSRS reports

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-

RE: Searching for tables in SSRS reports

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.

http://www.apexsql.com/free_tools/

Dan

----------------------------------------
www.fountain.me.uk

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
----------------------------------------

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close