PDO Class

DownloadDownload PHP Driver

The PDO class contains methods that allow your PHP application to connect to an SQL Server instance.

Syntax


PDO {}  

Remarks

The PDO class contains the following methods:

PDO::__construct

PDO::beginTransaction

PDO::commit

PDO::errorCode

PDO::errorInfo

PDO::exec

PDO::getAttribute

PDO::getAvailableDrivers

PDO::lastInsertId

PDO::prepare

PDO::query

PDO::quote

PDO::rollback

PDO::setAttribute

Support for PDO was added in version 2.0 of the Microsoft Drivers for PHP for SQL Server.

See Also

PDO_SQLSRV Driver Reference
Overview of the PHP SQL Driver
Constants (Microsoft Drivers for PHP for SQL Server)
Programming Guide for PHP SQL Driver
Getting Started with the PHP SQL Driver
PDO