See
Re: SQL Connection Error Message #
835711>Hallo,
>
>Via the internet i make a stringconnect to a remote sqlserver. Everything works well except my error handling when the connection to the remote doesnt work. Is it possible to intercept these windows/odbc messages like: 'connection failed due to server doesnt exist or wrong pwd,uid'
>
>thnx
--sb--