OnlineHours Problem

Results 1 to 10 of 10
  1. #1
    Proficient Member mytzu is offline
    MemberRank
    Aug 2012 Join Date
    Iasi, RomaniaLocation
    160Posts

    OnlineHours Problem

    Helo guyz, i`m using 11.11.82 files, and i have a problem in MEM_STAT with Online Hours.
    Heres My Table:


    I have made MinutesOnline by this topic:
    http://forum.ragezone.com/f82/mucore...orking-847278/
    And it works perfectly. But i need OnlineHours to work because i have an exchange online hours module.

    I need a query or something to fix my HoursOnline start counting online Hours of Users.


  2. #2
    Newbie daezugun is offline
    MemberRank
    Feb 2011 Join Date
    127.0.0.1Location
    787Posts

    Re: OnlineHours Problem

    Changed the "int: to "real" and unchecked "Allow Null" for OnlineHours

  3. #3
    Proficient Member mytzu is offline
    MemberRank
    Aug 2012 Join Date
    Iasi, RomaniaLocation
    160Posts

    Re: OnlineHours Problem

    Yes, but how to change that ?
    Because if i edit in Enterprise and then try to save, it wont let me.
    PHP Code:
    'MEMB_STAT' table
    Unable to modify table.  
    ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'OnlineHours'table 'MuOnline.dbo.Tmp_MEMB_STAT'column does not allow nullsINSERT fails.
    [
    Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated
    And you have done that? It works for you ?

  4. #4
    Enthusiast varcush is offline
    MemberRank
    Jun 2008 Join Date
    <?=$Romania;?>Location
    45Posts

    Re: OnlineHours Problem

    search for wz_disconnect_memb procedure and change (DATEDIFF(hh,ConnectTM,getdate()) with (DATEDIFF(mi,ConnectTM,getdate())

  5. #5
    Proficient Member mytzu is offline
    MemberRank
    Aug 2012 Join Date
    Iasi, RomaniaLocation
    160Posts

    Re: OnlineHours Problem

    But where and how to search and change that ?

  6. #6
    Am i? ScriptKid is offline
    MemberRank
    Oct 2006 Join Date
    $Location="??";Location
    1,810Posts

    Re: OnlineHours Problem

    MuOnline Tables

  7. #7
    Proficient Member mytzu is offline
    MemberRank
    Aug 2012 Join Date
    Iasi, RomaniaLocation
    160Posts

    Re: OnlineHours Problem

    Quote Originally Posted by mytzu View Post
    Yes, but how to change that ?
    Because if i edit in Enterprise and then try to save, it wont let me.
    PHP Code:
    'MEMB_STAT' table
    Unable to modify table.  
    ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'OnlineHours'table 'MuOnline.dbo.Tmp_MEMB_STAT'column does not allow nullsINSERT fails.
    [
    Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated
    And you have done that? It works for you ?
    I know that is in Tabels.. but i already told you that i dont know how to change those values, after i edite table and i try to save, i get this error :-s
    So can someone tell me what i need to edit ?
    Last edited by mytzu; 05-01-13 at 03:20 PM.

  8. #8
    Proficient Member mytzu is offline
    MemberRank
    Aug 2012 Join Date
    Iasi, RomaniaLocation
    160Posts

    Re: OnlineHours Problem

    I used this comand
    Code:
    ALTER TABLE [MEMB_STAT]
    ALTER COLUMN [OnlineHours] [int] NOT NULL
    But i recieve this error
    Code:
    Server: Msg 515, Level 16, State 2, Line 1
    Cannot insert the value NULL into column 'OnlineHours', table 'MuOnline.dbo.MEMB_STAT'; column does not allow nulls. UPDATE fails.
    The statement has been terminated.
    So please someone fix this for me? I really need those OnlineHours To count!

  9. #9
    Enthusiast varcush is offline
    MemberRank
    Jun 2008 Join Date
    <?=$Romania;?>Location
    45Posts

    Re: OnlineHours Problem

    Quote Originally Posted by ScriptKid View Post
    MuOnline Tables
    not in mu online tables --- in procedures

    search for wz_disconnect_memb procedure and change (DATEDIFF(hh,ConnectTM,getdate()) with (DATEDIFF(mi,ConnectTM,getdate())



    There are stored procedure

    you need to searchfor wz_disconnect_memb

  10. #10
    Proficient Member mytzu is offline
    MemberRank
    Aug 2012 Join Date
    Iasi, RomaniaLocation
    160Posts

    Re: OnlineHours Problem

    Its fixed now. Thank you all!



Advertisement