Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Login Query

Author  Topic 

blanc
Starting Member

2 Posts

Posted - 2005-11-16 : 19:24:15
Hi,
I have a login form in Visual Basci Ex 2005 and would like to know how to make the program search for the record
that has the login, get the password and compare them to give or deny access.
THanks

Vivaldi
Constraint Violating Yak Guru

298 Posts

Posted - 2005-11-16 : 20:36:31
Well,

Get your typed in username and pwd
write a stored procedure
and pass in the username and pwd.

then simply do a query, and in your VB program, you can check to see if anything was returned and determine the success/failure option


________________________________________________

Drinking German Beer... fun.
Listening to an accordian player play ACDC...priceless
Go to Top of Page

blanc
Starting Member

2 Posts

Posted - 2005-11-17 : 16:37:31
Thanks,
I dont know a lot of SQL so could someone give me an example of how the query would be, eg
SQL find (logintext) and output none or password value. Check that password.text = password Output.
I know basic and to do queries, but I dont know how to tell the program that logintext is the input and especially to name the output, eg If SqlOutput.text=password.text Then...
How do I name SqlOutput.text?
Bye...
Go to Top of Page
   

- Advertisement -