| 将存储过程ACCOUNT_LOGIN的属性值改为以下代码: 复制代码/****** Object:  Stored Procedure dbo.ACCOUNT_LOGIN    Script Date: 6/6/2006 6:03:33 PM ******/
-- Created by Samma
-- 2002.01.18
CREATE PROCEDURE ACCOUNT_LOGIN
@AccountID        varchar(21),
@Password        varchar(13),
@nRet                smallint        OUTPUT
AS
DECLARE @Nation tinyint
SET @Nation = 0
        -- tid login method by samma 2004.02.24
DECLARE @pwd varchar(13)
SET @pwd = null
SELECT @pwd = strPasswd FROM TB_USER WHERE strAccountID = @AccountID
IF @pwd IS null
BEGIN
        SET @nRet = 0
        RETURN
END
ELSE IF @pwd <> @Password
BEGIN
        SET @nRet = 0
        RETURN
END
SELECT @Nation = bNation FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID
IF @@ROWCOUNT = 0
BEGIN
        SET @nRet = 1
        RETURN
END
BEGIN
        SET @nRet = 1
        RETURN
END
BEGIN
        SET @nRet = @Nation+1
        RETURN
END
GO
[ 本帖最后由 vvforgs 于 2008-6-20 21:25 编辑 ]
 |