SqlException - is there a specific exception for 'login failed'?
Posted on 2006-11-22
I have a login dialogue for an application that connects to a database server. If the connection.open fails after the user has entered their credentials I handle if with an SqlException and print the message. I want to be a bit more specific though because I want to handle network failures differently to login failures. Is there a way of distinguishing the types of exception? Has anyone got a link to a list of all exceptions, or ways of getting information out of SqlException?