I am trying to put in a condition to check and see if the odbc connection was successful but I can't get it to work. [code] $user = ''; $pass = ''; $conn = odbc_connect('server', $user, $pass ); if(!$conn) { die("Connection Failed"); } else { echo "Connection Established"; } [/code] But i keep gfetting this error message on the webpage Warning: odbc_connect() [function.odbc-connect]: SQL error: [Viaserv][ODBC Driver]DG23155: Allocate error: TCP/IP socket error, RC=10060, Message=ETIMEDOUT., SQL state HY000 in SQLConnect in c:\Inetpub\wwwroot\test.php on line 4 Connection Failed: Thanks for the help