a guest Jul 22nd, 2019 153 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- $database = "test_db";
- $conn = new PDO( "sqlsrv:server=$server ; Database = $database", $user, $pass);
- $conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
- $conn->setAttribute( PDO::SQLSRV_ATTR_QUERY_TIMEOUT, 1 );
- $query = 'select * from dbo.MG_ARTICOLI';
RAW Paste Data