Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Here is the problem

I am creating desktop application in C# for this I need authentication from data base where I have user name and I want to check that wether this user exist in access data base or no if the user exist there return the user id from data base.
Posted
Updated 12-Jun-11 21:33pm
v4

 
Share this answer
 
Start out with SQL Tutorial[^]. And depend on how you build up the table that holds the user info. SELECT statement can vary.

One example can be:

SQL
SELECT id FROM useraccess WHERE login='kim' AND SHA1(password)=SHA1('mypass')


It will give 1 result, if login and password macth login.
Please see this great tip Password Storage: How to do it.[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900