K
kylin
ALTER PROCEDURE Login
@LName nvarchar(50),
@Pwd nvarchar(500)
AS
declare @myID int
SET NOCOUNT ON
if exists
(
select @myID = ID from kylin_user where lname=@lname and pwd=@pwd
)
begin
insert into kylin_log(UID,TLogin)values(@myID,Getdate())
end
RETURN
but it mind that @myID=ID wrong !
what't the errors ?
@LName nvarchar(50),
@Pwd nvarchar(500)
AS
declare @myID int
SET NOCOUNT ON
if exists
(
select @myID = ID from kylin_user where lname=@lname and pwd=@pwd
)
begin
insert into kylin_log(UID,TLogin)values(@myID,Getdate())
end
RETURN
but it mind that @myID=ID wrong !
what't the errors ?