Can you help me with this error, thank you

Results 1 to 5 of 5
  1. #1
    Enthusiast nhacphiyen is offline
    MemberRank
    Nov 2010 Join Date
    47Posts

    Can you help me with this error, thank you

    Can you help me with this error, thank
    you



    Last edited by nhacphiyen; 24-10-11 at 11:29 PM.


  2. #2
    Newbie level29 is offline
    MemberRank
    Jun 2010 Join Date
    SomewhereBSideULocation
    705Posts

    Re: Can you help me with this error, thank you

    create another account.. if this new created account open on your client..this mean gmc user account can't open on client...

  3. #3
    Apprentice rein21 is offline
    MemberRank
    Nov 2008 Join Date
    15Posts

    Re: Can you help me with this error, thank you

    check your database for, error is already there
    u maybe missing some parameters on your user_verify

  4. #4
    Common Sense FreedomRecords is offline
    MemberRank
    Apr 2011 Join Date
    PhilippinesLocation
    683Posts

    Re: Can you help me with this error, thank you

    Odbc gogogog !

  5. #5
    Account Upgraded | Title Enabled! dev02 is offline
    MemberRank
    Sep 2010 Join Date
    Ottawa OntarioLocation
    592Posts

    Re: Can you help me with this error, thank you

    SE [RanUser]
    GO
    /****** Object: StoredProcedure [dbo].[user_verify] Script Date: 07/17/2011 09:58:24 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO


    ALTER PROCEDURE [dbo].[user_verify]
    @userId char(25),
    @userPass char(25),
    @userIp char(25),
    @SvrGrpNum int,
    @SvrNum int,
    @proPass varchar(6), -- Ran dynamic password
    @proNum varchar(2), -- Ran dynamic password random number
    @nReturn int OUTPUT

    AS
    DECLARE
    @nAvailable int,
    @nUserNum int,
    @nState int,
    -- Declare variables used in error checking.
    @error_var int,
    @rowcount_var int,
    @nBlock int,
    @BlockDate datetime,
    @EndDate datetime,
    @StrSql nvarchar(100)

    SET NOCOUNT ON

    SET @nReturn = 0
    SET @nUserNum = 0

    SELECT @nUserNum=UserInfo.UserNum,
    @nState=UserInfo.UserLoginState,
    @nBlock=UserInfo.UserBlock,
    @BlockDate=UserInfo.UserBlockDate

    FROM UserInfo
    WHERE UserID = @userId AND UserPass = @userPass AND UserAvailable = 1


    -----------------------------------------------------------------
    -- ID / PWD check...
    IF @nUserNum = 0
    BEGIN
    SET @nReturn = 0
    RETURN @nReturn
    END
    ELSE
    BEGIN
    SET @nReturn = 1
    IF @nState = 1
    BEGIN
    SET @nReturn = 5
    RETURN @nReturn
    END
    END


    IF (SELECT COUNT(*) FROM BlockAddress WITH (NOLOCK) WHERE BlockAddress = @userIp) > 0

    BEGIN
    declare @params as nvarchar(100)
    SET @StrSQL = 'SELECT @ordercnt=count(userid) FROM Randpass WHERE userid='''+@userId+''' AND pwd'+@proNum + '='''+@proPass + ''''
    SET @params = '@ordercnt as int OUTPUT' -- OUTPUT ???? ??

    exec sp_executesql @StrSQL, @params, @ordercnt = @rowcount_var OUTPUT

    SELECT @error_var = @@ERROR
    IF @error_var = 0 AND @rowcount_var = 1
    BEGIN
    SET @nReturn = 1 -- Dynamic password correct
    END
    ELSE
    BEGIN
    SET @nReturn = 7 -- Dynamic password error
    RETURN @nReturn
    END
    Make a new query and paste this one then execute..



Advertisement