Db memb_stat

Results 1 to 10 of 10
  1. #1
    Apprentice Haarhus is offline
    MemberRank
    Mar 2015 Join Date
    19Posts

    Db memb_stat

    I need some help , my MEMB_STAT stopped filling when somebody goes online or offline , the data is not recorded so anything connected to online accounts is not working :/ any ideas how to fix that without reisntalling the DB files ?


  2. #2
    Put Community First fallenfate is offline
    MemberRank
    Oct 2014 Join Date
    Arad DomanLocation
    1,108Posts

    Re: Db memb_stat

    Are the column names still the same? The one to log online/offline is ConnectStat.

  3. #3
    Apprentice Haarhus is offline
    MemberRank
    Mar 2015 Join Date
    19Posts

    Re: Db memb_stat

    Yes , they are the same , nothing has been changed
    memb__id varchar 10
    ConnectStat tinyint 1
    ServerName varchar 50 tick
    IP varchar 15 tick
    ConnectTM smalldatetime 4 tick
    DisConnectTM smalldatetime 4 tick
    TotalTime int 4 tick ( custom added for webcounter)
    Last edited by Haarhus; 02-06-15 at 09:44 AM.

  4. #4
    Put Community First fallenfate is offline
    MemberRank
    Oct 2014 Join Date
    Arad DomanLocation
    1,108Posts

    Re: Db memb_stat

    Have you been editing any configs or anything lately, or has it just randomly stopped? All I can think of to help is checking the server logs for a message. Are there any that look out of place?

  5. #5
    Apprentice Haarhus is offline
    MemberRank
    Mar 2015 Join Date
    19Posts

    Re: Db memb_stat

    only WZ_DISCONNECT_MEMB procedure thats the only thing

  6. #6
    Member 7GNJumper is offline
    MemberRank
    Apr 2013 Join Date
    IstanbulLocation
    51Posts

    Re: Db memb_stat

    go delete old WZ_DISCONNECT_MEMB create new one with same name copy paste this code.
    USE [MuOnline]
    GO
    /****** Object: StoredProcedure [dbo].[WZ_DISCONNECT_MEMB] Script Date: 03.06.2015 11:00:24 ******/
    SET ANSI_NULLS OFF
    GO
    SET QUOTED_IDENTIFIER ON
    GO


    ALTER PROCEDURE [dbo].[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


  7. #7
    Apprentice Haarhus is offline
    MemberRank
    Mar 2015 Join Date
    19Posts

    Re: Db memb_stat

    It still doesnt work :/

    - - - Updated - - -

    i might eventually reinstall it all

    - - - Updated - - -

    Another problem , after some time the DB stops recording data and when i stop the database server and start it again there is a rollback and the website lags untill the reset happens

  8. #8
    Put Community First fallenfate is offline
    MemberRank
    Oct 2014 Join Date
    Arad DomanLocation
    1,108Posts

    Re: Db memb_stat

    No idea why any of that is happening besides the server files being buggy, but I've not run into that issue before, so I don't know if that will fix it or if its truly a DB issue. I recommend trying some new files if possible.

  9. #9
    Apprentice Haarhus is offline
    MemberRank
    Mar 2015 Join Date
    19Posts

    Re: Db memb_stat

    I will see, anyway , thank you !

  10. #10
    Put Community First fallenfate is offline
    MemberRank
    Oct 2014 Join Date
    Arad DomanLocation
    1,108Posts

    Re: Db memb_stat

    No worries, I like helping the community, I just wish I knew what the problem you encountered was. Sounds really weird.



Advertisement