ALTER proc [dbo].[kullaniciGiris]
(
@kullaniciAdi nvarchar(50),
@kullaniciSifre nvarchar(50)
)
as
select kullaniciId,yoneticiMi,kullanicitipId from tblKullanicilar
where kullaniciAdi=@kullaniciAdi and kullaniciSifre=HASHBYTES('SHA1',@kullaniciSifre)
I execute this procedure


Result:I don't have a data
query don't executed true
why?
I want to execute this procedure and I see data in result
this procedure work on table below


Madhu KRank #1,514 · 1.1K reputationPosted Jan 13, 2011, 7:13 PM EST
you procedure selects for records with kekiz and 0x689307D2FC53AF0FB941BC1BB42737CE4F3EF540 so you dont get any records to display unless the
converted value (0x689307D2FC53AF0FB941BC1BB42737CE4F3EF540 ) is present in your table.
Suthish NairRank #92 · 22.8K reputationPosted Jan 13, 2011, 8:19 PM EST
refer, might helps..
http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=50983