Results 1 to 2 of 2

Thread: DBManager::disconnect() for MSSQL

  1. #1
    Shraddha is offline Junior Member
    Join Date
    Jan 2012
    Posts
    1

    Default DBManager::disconnect() for MSSQL

    Hi,
    Version: SugarCRM 6.0.3 using WAMP and MSSQL 2005

    I am currently trying to list all users bellow ACLRoles Detail View in subpanel
    but get the following error in log file:

    Query:SELECT users_company_role.*, acl_roles.* FROM acl_roles
    INNER JOIN users_company_role ON users_company_role.user_id = '1'
    AND users_company_role.role_id = acl_roles.id AND users_company_role.deleted = 0 WHERE acl_roles.deleted=0

    01/19/12 13:51:15 [5884][1][INFO]
    Query Execution Time:0.00027704238891602
    01/19/12 13:51:22 [5884][1][DEBUG] Hook called: ::server_round_trip

    01/19/12 13:51:22 [5884][1][DEBUG] Including generic hook file
    01/19/12 13:51:22
    [5884][1][DEBUG] Calling DBManager::disconnect()


    If I'm showing less than 18 records then the records are correctly listed (the error is shown after the first 18 are listed) but if there are more than 18 then the remaining records aren't listed.It shows blank page.

    The sugarlog (with debugs) around the error is:
    Query:SELECT users_company_role.*, acl_roles.* FROM acl_roles
    INNER JOIN users_company_role ON users_company_role.user_id = '1'
    AND users_company_role.role_id = acl_roles.id AND users_company_role.deleted = 0 WHERE acl_roles.deleted=0

    01/19/12 13:51:15 [5884][1][INFO]
    Query Execution Time:0.00027704238891602
    01/19/12 13:51:22 [5884][1][DEBUG] Hook called: ::server_round_trip

    01/19/12 13:51:22 [5884][1][DEBUG] Including generic hook file
    01/19/12 13:51:22
    [5884][1][DEBUG] Calling DBManager::disconnect()

    We also have an identical SugarCRM instance on a different server that uses mssql 2005. On this instance the listing works without errors.

    if anyone has had any luck with listing using 6.0.3 and mssql?

    Note:
    I have tried with the solution in forum titled "Importing fails when using MSSql"
    i.e
    add this line:
    if ( !isset($monitor->seconds) ) $monitor->seconds = 1;

    after line
    if ( !isset($monitor->active) ) $monitor->active= 1;

    in file modules\Trackers\store\TrackerSessionsDatabaseStor e.php

    But still its not working

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: DBManager::disconnect() for MSSQL

    Quote Originally Posted by Shraddha View Post
    Hi,
    Version: SugarCRM 6.0.3 using WAMP and MSSQL 2005

    I am currently trying to list all users bellow ACLRoles Detail View in subpanel
    but get the following error in log file:

    Query:SELECT users_company_role.*, acl_roles.* FROM acl_roles
    INNER JOIN users_company_role ON users_company_role.user_id = '1'
    AND users_company_role.role_id = acl_roles.id AND users_company_role.deleted = 0 WHERE acl_roles.deleted=0

    01/19/12 13:51:15 [5884][1][INFO]
    Query Execution Time:0.00027704238891602
    01/19/12 13:51:22 [5884][1][DEBUG] Hook called: ::server_round_trip

    01/19/12 13:51:22 [5884][1][DEBUG] Including generic hook file
    01/19/12 13:51:22
    [5884][1][DEBUG] Calling DBManager::disconnect()


    If I'm showing less than 18 records then the records are correctly listed (the error is shown after the first 18 are listed) but if there are more than 18 then the remaining records aren't listed.It shows blank page.

    The sugarlog (with debugs) around the error is:
    Query:SELECT users_company_role.*, acl_roles.* FROM acl_roles
    INNER JOIN users_company_role ON users_company_role.user_id = '1'
    AND users_company_role.role_id = acl_roles.id AND users_company_role.deleted = 0 WHERE acl_roles.deleted=0

    01/19/12 13:51:15 [5884][1][INFO]
    Query Execution Time:0.00027704238891602
    01/19/12 13:51:22 [5884][1][DEBUG] Hook called: ::server_round_trip

    01/19/12 13:51:22 [5884][1][DEBUG] Including generic hook file
    01/19/12 13:51:22
    [5884][1][DEBUG] Calling DBManager::disconnect()

    We also have an identical SugarCRM instance on a different server that uses mssql 2005. On this instance the listing works without errors.

    if anyone has had any luck with listing using 6.0.3 and mssql?

    Note:
    I have tried with the solution in forum titled "Importing fails when using MSSql"
    i.e
    add this line:
    if ( !isset($monitor->seconds) ) $monitor->seconds = 1;

    after line
    if ( !isset($monitor->active) ) $monitor->active= 1;

    in file modules\Trackers\store\TrackerSessionsDatabaseStor e.php

    But still its not working
    I would try upgrading to 6.3 or 6.4 when it goes GA. as they both have much better SQL Server support than 6.0.3
    John Mertic
    Sugar Community Manager

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 2011-08-10, 04:09 PM
  2. Timeout for disconnect session
    By aleroot in forum Help
    Replies: 0
    Last Post: 2009-04-23, 10:18 AM
  3. Multiple Forums Account disconnect
    By anthonyp11221 in forum Help
    Replies: 0
    Last Post: 2007-08-15, 04:00 PM
  4. Replies: 2
    Last Post: 2007-08-14, 04:38 PM
  5. Trouble with DBmanager.php
    By kerssies in forum Help
    Replies: 4
    Last Post: 2007-01-04, 08:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •