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

  • Home
  • SEARCH
  • 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 6559813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:22:43+00:00 2026-05-25T13:22:43+00:00

I have two databases, one’s MySql, one’s MSSQL, I’m using php::pdo on both, except

  • 0

I have two databases, one’s MySql, one’s MSSQL, I’m using php::pdo on both, except for the sql-level idiosyncrasies, it’s manageable.

I’m requesting all data from DB1, and all data from DB2, I’m looping both through an array, tossing records in, and tossing them out to larger data-set that gets fed to the web client.

I’m doing all of this so I can present multiple data sources to the end-user as one interface (it’s not their problem the data comes from n databases, they just want one spot to search).

Now, I’m not really a big fan of doing this, it feels dirty, but I want this to work neatly. If I change one query, I have to watch the other one. If I set it up with an ajax library, I have to make both queries match. It’s getting annoying and tricky, I’d like to just write the SQL once for one database like I do everywhere else.

What can I do to elegantly present multiple data sources as one interface?

  • 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-05-25T13:22:44+00:00Added an answer on May 25, 2026 at 1:22 pm

    In MSSQL you can add MySQL as a linked server. That way you can create views or stored procedures in the MSSQL database that gets data from both databases.

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

Sidebar

Related Questions

I have two databases, one MySQL 5, one SQL Server 2000. I've got the
I have two databases in a php / mysql application. One for user data
I have two databases: first one is MySQL second one is MSSQL I need
I have two database tables, one in MYSQL and one in MSSQL. Both have
I have two SQL Server 2005 databases, one is for development and the other
I have two databases in MSSQL ,and i want to connect to them using
I have two MySQL databases for my site - one is for a production
I have two SQL Server 2008 Enterprise databases (on two machines), and one of
In Sql Server 2005, I have two databases. In the first one I have
I have two Databases. They are both filled into DataTables using the GetTable1 \

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.