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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:22:52+00:00 2026-06-08T08:22:52+00:00

What considerations should I take into account when choosing between SQLSRV driver vs. PDO

  • 0

What considerations should I take into account when choosing between SQLSRV driver vs. PDO driver (for PHP with MS SQL server)?

I saw this previous Stackoverflow post ( When using PHP on Windows, what is better (1) the native driver for SQL Server or (2) the PDO driver? ) but the answer seems a bit lacking and doesn’t mention all the benefits of using the SQLSRV driver as mentioned in this article.

I’m looking for a comprehensive and up-to-date (eg. is it still the case that SQLSRV driver is only available for Windows?) answer that programmers can refer to as a resource.

  • 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-08T08:22:54+00:00Added an answer on June 8, 2026 at 8:22 am

    PDO allows you to write you code to be reasonably DB-neutral.

    If you want truly DB-neutral, you’d want to use a full DB abstraction layer like NotORM — with plain PDO, you’d still need to be careful about SQL syntax difference, but at least your basic PHP code would be DB-neutral.

    Being DB-neutral may not seem important now — if you’re using SQL Server, then you’ve probably been told that’s what is required and nothing else — but you can’t predict how things will change in the future, so if the choice is between a DB-neutral driver and a DB-specific driver, and you don’t have any other reason for a preference, then go with the neutral one…. it’ll make life a lot easier if your company gets taken over and the new boss wants to use Oracle as the DB!

    Also, because it’s DB neutral, PDO is more standard and more well-known in the PHP community. You’ll get a lot more help with PDO from sites online (like this one) than with the MSSQL driver.

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

Sidebar

Related Questions

Are there any special considerations (other than permissions) that you should take into account
What are the performance considerations that one should take into account when designing a
Take this code into consideration: Proxy p = new Proxy(Type.SOCKS, new InetSocketAddress(proxyURL, port)); try
take this linq into consideration: list.Where(sil => sil.XML.Element(ticket) != null && sil.XML.Element(ticket).Attribute(id).Value == smsRequestIn.TicketID)
[I know this is quite subjective, and dependant on various considerations, so I'm just
Things to take into consideration: - easy to use - fast - use underlying
This is a fairly simple question (or at least from the outset it should
This question pertains to Ruby on Rails and PHP. When looking for a VPS
What is the best way to render a data object into html? Take into
When making a custom field, what should I consider between overriding the paint() vs

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.