SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 153 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  $user='test';
  2.         $pass='test';
  3.         $database = "test_db";
  4.         $server='test_server.server.com,1435';
  5.         $conn = new PDO( "sqlsrv:server=$server ; Database = $database", $user, $pass);
  6.         $conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
  7.         $conn->setAttribute( PDO::SQLSRV_ATTR_QUERY_TIMEOUT, 1 );
  8.  
  9.         $query = 'select * from dbo.MG_ARTICOLI';
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top