diff --git a/samples/tutorials/php/2.0 PHP Server programming - Stored procedures, Transactions, and UDFs/test.php b/samples/tutorials/php/2.0 PHP Server programming - Stored procedures, Transactions, and UDFs/test.php index 22b2d562..b1d713c9 100644 --- a/samples/tutorials/php/2.0 PHP Server programming - Stored procedures, Transactions, and UDFs/test.php +++ b/samples/tutorials/php/2.0 PHP Server programming - Stored procedures, Transactions, and UDFs/test.php @@ -7,7 +7,11 @@ $connectionOptions = [ ]; // Establishes the connection $conn = sqlsrv_connect($serverName, $connectionOptions); -////////////////// STORED PROCEDURE ///////////////////////// + +/* + * Stored Procedure + */ + $tsql = "CREATE PROCEDURE sp_GetCompanies22 AS BEGIN SELECT [CompanyName] FROM SalesLT.Customer END"; $storedProc = sqlsrv_query($conn, $tsql); if ($storedProc == false) { @@ -50,7 +54,10 @@ if ($storedProc == false) { sqlsrv_free_stmt($storedProc); ?>