Click to See Complete Forum and Search --> : Sql server login


Derek
January 28th, 2000, 02:35 AM
Hi,
How do i check to see if the login and password match in an sql server. The database is an sql database.There is no table called database table where the user names and logins are usually stored. So there are no user names and logins.What code would i write?? Please help.
Thanks alot,
PS: We are all connected to the network and we all have logins and passwords

January 30th, 2000, 02:21 PM
try to trap the error message when trying to connect to SQL server from the VB.
If no error then continue with your logic. Other wise raise the exception and display error message and/or abort the program.

Pl use On Error GoTO errorhandle