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
Post a Comment