Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. $serverName = "[REDACTED]";
  3. $connectionInfo = array( "Database"=>"Scratch", "UID"=>"[REDACTED]", "PWD"=>"[REDACTED]"); $conn = sqlsrv_connect( $serverName, $connectionInfo);
  4.  
  5. if( $conn ) {
  6. echo "Connection established."; }else{
  7. echo "Connection could not be established.";
  8. die( print_r( sqlsrv_errors(), true)); } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement