Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $serverName = "[REDACTED]";
- $connectionInfo = array( "Database"=>"Scratch", "UID"=>"[REDACTED]", "PWD"=>"[REDACTED]"); $conn = sqlsrv_connect( $serverName, $connectionInfo);
- if( $conn ) {
- echo "Connection established."; }else{
- echo "Connection could not be established.";
- die( print_r( sqlsrv_errors(), true)); } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement