query( "SELECT @@SPID" ); if ( $stmt ) { $spid = $stmt->fetch(PDO::FETCH_NUM)[0]; } else { die( "skip Could not fetch SPID during SKIPIF."); } $stmt = $conn->query( "SELECT * FROM sys.dm_exec_connections WHERE session_id = ".$spid); $prot = $stmt->fetchColumn(3); if ($prot != 'TCP') { die("skip Not using a TCP protocol." ); } ?>