<?php
/* Specify the server and connection string attributes. */
$serverName = "localhost";
/* Get UID and PWD from application-specific files. */
$uid ="sa";
$pwd = "1234";
$connectionInfo = array( "UID"=>$uid,
"PWD"=>$pwd,
"Database"=>"temp_db");
/* Connect using SQL Server Authentication. */
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn === false )
{
echo "Unable to connect.</br>";
die( print_r( sqlsrv_errors(), true));
}
else
{
echo "connect!!!!!!!!.</br>";
}
'프로그램 경험 > PHP' 카테고리의 다른 글
[WordPress] 워드프레스 멀티 사이트일때 포스트 저장 (0) | 2012.12.04 |
---|---|
[WordPress] 워드프레스 이미지 업로드와 fetured image의 차이 (0) | 2012.12.03 |
[PHP] MsSql 연동 모듈(Sqlsrv) 정보 알아내기 (0) | 2012.12.03 |
[PHP] Windows + Apache + MsSql 연동하기 (4) | 2012.11.29 |
PhpStorm 디버깅 하기 (0) | 2012.11.28 |