Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access ODBC Client Server > Error handler n...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1429 of 1511
Post > Topic >>

Error handler not catching SQL Server Connection failure

by "Dale Fye" <dale.fye@[EMAIL PROTECTED] > Feb 3, 2008 at 07:58 PM

Access 2003.

I've created my own Linked Table manager for use in several of my 
applications.  It is running fine when I use Windows authentication, or
when 
I use a valid userid and password, but when I try to log in with an
invalid 
userid/password, I get a Microsoft SQL Server Login error message which is

not handled by my error handler.  The message looks like:

Connection failed:
SQLState:'01000'
SQL Server Error: 2
[Microsoft][ODBC SQL Server Driver][Shared Memroy]ConnectionOpen 
(Connect()).
Connection failed:
SQLState: '08001'
SQL Server Error:17
{Microsoft][ODBC SQL Server Driver][Shared Memory] SQL Server does not
exist 
or access denied.

When I click OK, it pops ut a SQL Server Login dialog box.  I want to 
replace this process with my own error handling, but Access is not
trapping 
the SQL Server error.  Is there any way to get around this so I can ensure

that the user is entering the connection info into my application?
 




 3 Posts in Topic:
Error handler not catching SQL Server Connection failure
"Dale Fye" <  2008-02-03 19:58:24 
Re: Error handler not catching SQL Server Connection failure
"Alex Dybenko"   2008-02-04 10:19:59 
Re: Error handler not catching SQL Server Connection failure
Stefan Hoffmann <stefa  2008-02-04 10:15:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 3:30:23 CST 2008.