Hi,
I have a database application. In the beginning a user is connected to
the database. Here I want to check if the user input correct password
and user name, but I haven't find any exception for this concrete task.
Is there any specific exception for this purpose or I have to use
SqlException? And in the second case how could I check that the user
don't exist or the password is incorrect (I want to check also if there
is connection to the server)?
Thanks.
I have a database application. In the beginning a user is connected to
the database. Here I want to check if the user input correct password
and user name, but I haven't find any exception for this concrete task.
Is there any specific exception for this purpose or I have to use
SqlException? And in the second case how could I check that the user
don't exist or the password is incorrect (I want to check also if there
is connection to the server)?
Thanks.
Comment