How to Fix MEMB_STAT Problem!

Results 1 to 18 of 18
  1. #1
    Valued Member United is offline
    MemberRank
    May 2008 Join Date
    Behind You!Location
    114Posts

    How to Fix MEMB_STAT Problem!

    Hello Mates!

    i have been trying to find a solution how to fix MEMB_STAT problem, in other words (website problem, Online Users: 0)

    well, i finally found a "guide" from my own files LOL XD

    Prepare!! :winky:

    1. Delete WZ_CONNECT_MEMB & WZ_DISCONNECT_MEMB from Stored Procedures.
    2. Delete MEMB_STAT Table

    3. Creating WZ_CONNECT_MEMB with SQL Query (Run this in MuOnline DB)

    CREATE PROCEDURE WZ_CONNECT_MEMB

    @uid varchar(20),
    @server varchar(20),
    @uip varchar(20)
    AS

    Begin

    BEGIN TRANSACTION

    SET NOCOUNT ON

    IF EXISTS ( SELECT memb___id FROM MEMB_STAT WITH (READUNCOMMITTED)
    WHERE memb___id = @uid )
    Begin
    UPDATE MEMB_STAT
    SET ip = @uip , connectstat = 1 , servername = @server , ConnectTM = (getdate())
    WHERE memb___id = @uid
    End
    ELSE
    Begin
    INSERT INTO MEMB_STAT ( memb___id,ip,connectstat,servername) valueS (
    @uid,
    @uip,
    1,
    @server
    )
    End


    IF(@@Error <> 0 )
    ROLLBACK TRANSACTION
    ELSE
    COMMIT TRANSACTION

    SET NOCOUNT OFF
    End
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_NULLS OFF
    GO


    4. Delete Previous Lines, Creating WZ_DISCONNECT_MEMB with SQL Query (Run this in MuOnline DB)

    CREATE PROCEDURE WZ_DISCONNECT_MEMB

    @uid varchar(20)
    AS
    Begin

    BEGIN TRANSACTION

    SET NOCOUNT ON

    IF EXISTS ( SELECT memb___id FROM MEMB_STAT WITH (READUNCOMMITTED)
    WHERE memb___id = @uid )
    Begin
    UPDATE MEMB_STAT
    SET DisConnectTM = (getdate()), connectstat = 0 WHERE memb___id = @uid
    End
    ELSE
    Begin
    INSERT INTO MEMB_STAT ( memb___id,DisConnectTM,connectstat) valueS (
    @uid,
    (getdate()),
    0
    )
    End


    IF(@@Error <> 0 )
    ROLLBACK TRANSACTION
    ELSE
    COMMIT TRANSACTION

    SET NOCOUNT OFF
    End
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON
    GO



    5. Finally Creating MEMB_STAT, Delete Previous Lines and Run this in MuOnline DB.

    CREATE TABLE [dbo].[MEMB_STAT] (
    [memb___id] [nvarchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [ConnectStat] [tinyint] NULL ,
    [ServerName] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
    [IP] [nvarchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
    [ConnectTM] [smalldatetime] NULL ,
    [DisConnectTM] [smalldatetime] NULL
    ) ON [PRIMARY]
    GO



    Greetings, United


  2. #2
    Apprentice sesser01 is offline
    MemberRank
    Apr 2007 Join Date
    where i want! :)Location
    22Posts

    Re: [Guide] How to Fix MEMB_STAT Problem!

    This really worked... Thanks United.
    You're the man.

    Finaly someone that could find the solution to this problem.

    Thank You !

  3. #3
    Valued Member United is offline
    MemberRank
    May 2008 Join Date
    Behind You!Location
    114Posts

    Re: [Guide] How to Fix MEMB_STAT Problem!

    thx thx, atleast i did something which actually helps ppl xD

  4. #4
    Enthusiast kuchara is offline
    MemberRank
    Mar 2007 Join Date
    29Posts

    Re: [Guide] How to Fix MEMB_STAT Problem!

    version???

  5. #5
    Retired Old Man Shatter is offline
    MemberRank
    Jun 2008 Join Date
    NowhereLocation
    1,884Posts

    Re: [Guide] How to Fix MEMB_STAT Problem!

    wtf u mean version? this is DB FIX

  6. #6
    Member sexy4life is offline
    MemberRank
    Jan 2008 Join Date
    67Posts

    Re: [Guide] How to Fix MEMB_STAT Problem!

    Quote Originally Posted by Shatter View Post
    wtf u mean version? this is DB FIX
    Well some use WZ_ and some dont this this release really should have a version announcement in the instruction, or make another version of the script for those who dont use DB's with WZ_ or just edit his tables/functions with your own ^_^

  7. #7
    Enthusiast dark_kamu is offline
    MemberRank
    Nov 2006 Join Date
    26Posts

    Re: [Guide] How to Fix MEMB_STAT Problem!

    thanks , tested in 1.03N

  8. #8
    Enthusiast DapKySHA is offline
    MemberRank
    Oct 2007 Join Date
    RussiaLocation
    27Posts

    Re: [Guide] How to Fix MEMB_STAT Problem!

    It's greate, thanks for this guid! It was works

  9. #9
    Proficient Member badboy_style is offline
    MemberRank
    May 2008 Join Date
    RussiaLocation
    157Posts

    Re: [Guide] How to Fix MEMB_STAT Problem!

    good work man


    i will test now

  10. #10
    Apprentice DasFX is offline
    MemberRank
    Nov 2009 Join Date
    6Posts

    Re: How to Fix MEMB_STAT Problem!

    we'll see, thx

  11. #11
    Apprentice mileika is offline
    MemberRank
    Jul 2008 Join Date
    LatviaLocation
    12Posts

    Re: How to Fix MEMB_STAT Problem!

    OMG so big tnx :)

  12. #12
    Apprentice MuVallarta is offline
    MemberRank
    Nov 2006 Join Date
    8Posts

    Re: How to Fix MEMB_STAT Problem!

    Works Fine whit 99b
    Server 2003 SP1

    Thanks..

  13. #13
    Enthusiast Havoc9 is offline
    MemberRank
    Nov 2010 Join Date
    LithuaniaLocation
    36Posts

    Re: How to Fix MEMB_STAT Problem!

    Very thanks, good job. :)

  14. #14
    Enthusiast jazzbert is offline
    MemberRank
    Mar 2010 Join Date
    49Posts

    big grin Re: How to Fix MEMB_STAT Problem!

    Quote Originally Posted by United View Post
    Hello Mates!

    i have been trying to find a solution how to fix MEMB_STAT problem, in other words (website problem, Online Users: 0)

    well, i finally found a "guide" from my own files LOL XD

    Prepare!! :winky:

    1. Delete WZ_CONNECT_MEMB & WZ_DISCONNECT_MEMB from Stored Procedures.
    2. Delete MEMB_STAT Table

    3. Creating WZ_CONNECT_MEMB with SQL Query (Run this in MuOnline DB)

    CREATE PROCEDURE WZ_CONNECT_MEMB

    @uid varchar(20),
    @server varchar(20),
    @uip varchar(20)
    AS

    Begin

    BEGIN TRANSACTION

    SET NOCOUNT ON

    IF EXISTS ( SELECT memb___id FROM MEMB_STAT WITH (READUNCOMMITTED)
    WHERE memb___id = @uid )
    Begin
    UPDATE MEMB_STAT
    SET ip = @uip , connectstat = 1 , servername = @server , ConnectTM = (getdate())
    WHERE memb___id = @uid
    End
    ELSE
    Begin
    INSERT INTO MEMB_STAT ( memb___id,ip,connectstat,servername) valueS (
    @uid,
    @uip,
    1,
    @server
    )
    End


    IF(@@Error <> 0 )
    ROLLBACK TRANSACTION
    ELSE
    COMMIT TRANSACTION

    SET NOCOUNT OFF
    End
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON
    GO

    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_NULLS OFF
    GO


    4. Delete Previous Lines, Creating WZ_DISCONNECT_MEMB with SQL Query (Run this in MuOnline DB)

    CREATE PROCEDURE WZ_DISCONNECT_MEMB

    @uid varchar(20)
    AS
    Begin

    BEGIN TRANSACTION

    SET NOCOUNT ON

    IF EXISTS ( SELECT memb___id FROM MEMB_STAT WITH (READUNCOMMITTED)
    WHERE memb___id = @uid )
    Begin
    UPDATE MEMB_STAT
    SET DisConnectTM = (getdate()), connectstat = 0 WHERE memb___id = @uid
    End
    ELSE
    Begin
    INSERT INTO MEMB_STAT ( memb___id,DisConnectTM,connectstat) valueS (
    @uid,
    (getdate()),
    0
    )
    End


    IF(@@Error <> 0 )
    ROLLBACK TRANSACTION
    ELSE
    COMMIT TRANSACTION

    SET NOCOUNT OFF
    End
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON
    GO



    5. Finally Creating MEMB_STAT, Delete Previous Lines and Run this in MuOnline DB.

    CREATE TABLE [dbo].[MEMB_STAT] (
    [memb___id] [nvarchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [ConnectStat] [tinyint] NULL ,
    [ServerName] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
    [IP] [nvarchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
    [ConnectTM] [smalldatetime] NULL ,
    [DisConnectTM] [smalldatetime] NULL
    ) ON [PRIMARY]
    GO



    Greetings, United
    Thank you so much bro, You solved my problem, more power to you

  15. #15
    Proficient Member badboy_style is offline
    MemberRank
    May 2008 Join Date
    RussiaLocation
    157Posts

    Re: How to Fix MEMB_STAT Problem!

    Thank you very much, you helped me in this case, appraciated your kind job, thank you one more time.

  16. #16
    Account Upgraded | Title Enabled! livewirecebu is offline
    MemberRank
    Jul 2004 Join Date
    PhilippinesLocation
    851Posts

    Re: How to Fix MEMB_STAT Problem!

    Sir h0w ab0ut the "Invalid object name 'MEMB_INFO'." how to fix this?

  17. #17
    Valued Member dragiukas is offline
    MemberRank
    Jan 2012 Join Date
    LithuaniaLocation
    135Posts

    Re: How to Fix MEMB_STAT Problem!

    Thanks Man.

  18. #18
    Novice bunker8 is offline
    MemberRank
    Dec 2011 Join Date
    4Posts

    Re: How to Fix MEMB_STAT Problem!

    Great job , thanks bro :)



Advertisement