Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7871195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:50:05+00:00 2026-06-03T01:50:05+00:00

I have a two databases that contain the exact same tables and are on

  • 0

I have a two databases that contain the exact same tables and are on the same server. I want to be able to create a report that will allow me to “merge” these databases so that when a user queries they will query BOTH databases at the same time. Is that even possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:50:06+00:00Added an answer on June 3, 2026 at 1:50 am

    The simplest way to achieve this would be to create database views that UNION ALL the values from the same tables in both databases – something like:

    CREATE VIEW CombinedSalesTable AS
    SELECT * FROM database1.SalesTable
    UNION ALL
    SELECT * FROM database2.SalesTable
    

    – and design the reports to query the views.

    You may want to add an additional column to the views to show which database each record comes from, as a key value that is unique in one table may have a “duplicate” in the equivalent table in the other database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two different databases that contain two tables with the exact same design.
I have two tables with the exact same schema in SQL Server 2008 Standard
I have two separate sets of tables in the same database that model the
I have two tables that contain completely separate information: table: tires columns: Tire_id name
I have two databases in SQL2k5: one that holds a large amount of static
I have a web application that uses two databases. DB1 Users perform their CRUD
I have an archive system that had to be on two sql databases for
I have two tables in my database that look like that: Customer: C_ID city
I have two tables in my database schema that represent an entity having a
I have a database two tables and a linking table that I need a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.