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

Suthish NairPosted Jan 14, 2011, 1:19 AM
refer, might helps..
http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=50983
Madhu KPosted Jan 14, 2011, 12:13 AM
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.