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!
  • Students Click Here

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

Students Click Here


SSRS Report - Multiple Databases Same Server

SSRS Report - Multiple Databases Same Server

SSRS Report - Multiple Databases Same Server


This question has been asked many times but as I read through the posts and query the internet I see there have been many updates over time. We're using SQL Server 2008 R2.

I have data in two databases, DatabaseA and DatabaseB, on the same server that I want in a report. The dataset I'm using for the report is based on a view. I don't want to hardcode the view to the 2 databases because in my example I'm suggesting there are 2 databases on the same server, but depending on what server I'm looking at there may be 1, 3, 4, 5, etc tables.

Basically what I have is an inventory report for various regions and some regions have multiple warehouses on the same server they want reported on while other servers only have a single warehouse on the server. I'm trying to make the report as flexible as possible so I don't have a version of the report/view for each multiple of database on a server.


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!

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