Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Please help. How best to connect my VB ASP (Visual Studio 2005) login.aspx to my MSSQL 2005 database on the server \\SERVER01\ to validate the userid and password and IF it is a valid user (in the users table) , then set an environment variable that I can send to every Stored Procedure I execute [as one of the parameters], until he/she logs out (in which case it the environment variable must be reset to NULL).

I really need your help guys. I hope this is not a dumb question!!!

Thanks, MAC
Posted
Updated 1-Apr-12 20:12pm
v3

 
Share this answer
 
Comments
AndrewMcLintock 2-Apr-12 2:08am    
Sorry. This is being done in Visual Studio 2005, VB ASP. (See tags). I should have put that in the body!!! But thanks. Anyone else...?
 
Share this answer
 
v2
Comments
Prasad_Kulkarni 2-Apr-12 9:35am    
Link formatted
Please create a stored procedure in sql server for login.

Pass username and password from login page to this stored procedure to check in the table.

If record exists, than set environment variable else reset to null.
 
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