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 632839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:07:12+00:00 2026-05-13T20:07:12+00:00

In WordPress, how would I pull data from an external Microsoft SQL database to

  • 0

In WordPress, how would I pull data from an external Microsoft SQL database to display as a read only table?

To be clear, this is not a question on how to convert WordPress over to MS SQL, but rather how to pull data for a specific widget from a source outside the primary WordPress DB. The data I need to pull from happens to be in a MS SQL database.

For the sake of example, let’s say that I need to pull store locations and hours:

/* Retrieve store locations from the external MS SQL database*/

SELECT id, name, address, city, state, zip, phone, openingTime, closingTime
FROM locations
ORDER BY name

And display that data into a table on a WordPress page:

<table>
<tr>
    <th>Store Name</th>
    <th>Address</th>
    <th>Store Hours</th>
</tr>

<!-- Display rows of store locations here -->

</table>
  • 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-13T20:07:13+00:00Added an answer on May 13, 2026 at 8:07 pm

    WordPress runs on PHP and so you need to use a PHP provider for SQL Server. See Accessing SQL Server Databases with PHP.

    If you host WordPress on Linux, you need FreeTDS, see PHP mssql Requirements.

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

Sidebar

Related Questions

What's the best way to pull data from Wordpress database? I think creating a
I would like to display tagcloud in my home page. Found this wordpress flash
I made simple email in wordpress but it would only send email to the
I'm migrating a rather large (5000+ posts) from Movable Type to WordPress. At this
I'm building a WordPress plugin that pulls lat longs from a MySQL database and
I would like to display a wordpress blog in the following fashion: http://plone.org/documentation/kb/ Like
I'm trying to write a short Wordpress JQuery for Wordpress comments that would allow
I would like to put my local OS X wordpress site in my ~users/Sites/public
I would like to do a test like: http://stevelibonati.wordpress.com/2012/02/05/spring-mvc-test-with-a-sprinkle-of-mockito/ My problem is that I
Using Wordpress.. I would like to redirect to a certain page on the site

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.