mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Adding the samples content from extending the getting started website for azure specific workflows
12 lines
337 B
PHP
12 lines
337 B
PHP
<?php
|
|
$serverName = "your_server.database.windows.net";
|
|
$connectionOptions = array(
|
|
"Database" => "your_database",
|
|
"Uid" => "your_user",
|
|
"PWD" => "your_password"
|
|
);
|
|
//Establishes the connection
|
|
$conn = sqlsrv_connect($serverName, $connectionOptions);
|
|
if($conn)
|
|
echo "Connected!"
|
|
?>
|