sql server - how to compare the fied password in master.dbo.syslogins in ms sql 2008 -


i have form login , want check if login name , password match name , password in system table master.dbo.syslogins column password encrypted. procedure :

    create proc checklogin(@name nchar(10), @password nvarchar, @tb nchar(10) out) if exists (select * master.dbo.syslogins name = @name , password=@password) begin set @tb='success'; else set @tb='fail'; 

i cant compare password because encrypted in database.i want know if there way check or how decrypt password.any great.

use pwdcompare() function.

select * master.dbo.syslogins  name = @name , pwdcompare(@password,password) = 1 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -