| title | Comparing Execution Functions | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 03/26/2018 | |
| ms.prod | sql | |
| ms.prod_service | connectivity | |
| ms.reviewer | ||
| ms.technology | connectivity | |
| ms.topic | conceptual | |
| helpviewer_keywords |
|
|
| ms.assetid | 130fc0fd-87dd-46b2-918f-de9dc572c769 | |
| author | David-Engel | |
| ms.author | v-daenge |
[!INCLUDEDriver_PHP_Download]
The [!INCLUDEssDriverPHP] provides several options for executing functions.
If you are using the SQLSRV driver, use sqlsrv_query to execute a single query and sqlsrv_prepare with sqlsrv_execute to execute a prepared statement multiple times with different parameter values for each execution.
If you are using the PDO_SQLSRV driver, you can execute a query with one of the following:
Programming Guide for the Microsoft Drivers for PHP for SQL Server