PHP MSSQL접속 테스트

<?
$conn = mssql_connect (“HUB”, “viewer”, “”);


if(!$conn || !mssql_select_db(‘NEO_view’, $conn))
{
    die(‘Unable to connect or select database!’);
}


// Do a simple query, select the version of
// MSSQL and print it.
$version = mssql_query(‘SELECT @@VERSION’);
$row = mssql_fetch_array($version);


echo $row[0];


// Clean up
mssql_free_result($version);



mssql_close();
?>