📜  php sql server 连接代码 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:56.547000             🧑  作者: Mango

代码示例1
"dbName");
$conn = sqlsrv_connect( $serverName, $connectionInfo);

if( $conn ) {
     echo "Connection established.";
}else{
     echo "Connection could not be established.";
     die( print_r( sqlsrv_errors(), true));
}
?>