From my point of view is the variable content of $sDSN not passed as an argument to function odbc_connect.