See
Re: SqlStringConnection Message #
884312>
>Is there anyway to create a connection with the ability to trap for errors without the stupid ODBC connection error window appearing?
>
>Like:
>
>! Connection Failed:
>SQL State '28000'
>SQL Server Error 18456
>[Microsoft] [ODBC SQL Server Driver][SQL Server] Login failed for user 'xx'
>
--sb--