Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- $servername = "TSHA105S4074SQLEXPRESS"; //serverNameinstanceName
- // $username = ""; // exclude UID, using windows authentication
- // $password = ""; // exclude PWD, using windows authentication
- $connectionInfo = array("Database"=>"oes_project_db.mdf");
- $conn = sqlsrv_connect($serverName, $connectionInfo);
- if( $conn ) {
- echo "Connection established.<br />";
- }else{
- echo "Connection could not be established.<br />";
- die( print_r( sqlsrv_errors(), true));
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement