How to use a SQL Server database with your PHP web site

Today's featured TechNet Wiki article can be found here. It was originally authored by Larry Franks.


Intended audience: Web developers who are not familiar with SQL Server, yet want to learn how to use a SQL Server database with their PHP web sites.

The links below are external links and provide information and guidance on creating dynamic web pages using PHP, SQL Server and IIS as part of web site development. This information assumes that you are already familiar with PHP development. If you are not familiar with PHP and are looking for information or additional programming resources for this language, visit

Setting up your environment

Connecting to SQL Server from PHP

Storing and Retrieving Data

PHP Data Object (PDO) Support


Other Languages

This article is also available in the following languages:


Read the latest version of this Wiki article here, including lists of articles about Improving Performance and Security Concerns.


Comments (1)

  1. Computers Today (part 1 of 6)…/computers-today.aspx


    CS SPOTLIGHT: Girls in computer programming… why it matters!!!…/cs-spotlight-girls-in-computer-programming-why-it-matters.aspx

    Computational Thinking – Videos & Papers by Jeannette Wing…/computational-thinking-videos-amp-papers-by-jeannette-wing.aspx

Skip to main content