Results 1 to 5 of 5

Thread: Pulling from two databases

  1. #1
    routledge is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    London
    Posts
    98

    Default Pulling from two databases

    Good morning, good afternoon or good evening all

    I have a real issue and would appreciate feedback. I am attempting to link two seperate databases on seperate servers and link to them from ONE installed version of sugar.

    Now i'm not looking for a step by step tutorial (I can do that later for you guys if I decide to develop my system), I just want some feedback on what files to pitch for and if you believe it will be possible.

    Anyway thanks for looking

    Regards

    John

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Pulling from two databases

    Hi John

    It is good morning for me!
    Some questions:
    1. What kind of data there are in these database? Same as in sugar database?
    2. Do you want to enable sugar to join to two databases?
    3. Do you want to sync the two database to the database under sugar?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: Pulling from two databases

    John,

    The easiest way to achieve what you wish to do (and manage all of the problems such as de-duplication, determining which is the master if there are any conflicts etc). Is to use an off the shelf ETL (Extract, Transform, Load) tool such as:

    Jitterbit www.jitterbit.com
    Talend www.talend.com

    Both are Open Source tools available for free with support for the databases used by SugarCRM. You can then link the databases via a drag and drop interface and manage any complex transformations.

    Talend recently gave an excellent presentation at the SugarCRM Acceleration Summit in London.

    If rather than merge databases, you're interest is in persuading Sugar to dynamically switch between two disperate databases, this can be done by adding code to config.php or config_override.php to change the definition of the database connection depending on, for example, a session variable.

    If you're using Pro, however, be aware that there are licensing implications as the license only allows for one production and one development/backup database - not two production databases.
    Last edited by eNick; 2008-09-19 at 11:26 AM.
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  4. #4
    routledge is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    London
    Posts
    98

    Default Re: Pulling from two databases

    Thanks fellas

    First to eNick as i'm looking into the software you have described. Secondly to Andropes who is becoming a true savior.

    The problem I have is that the data in the external database (not sugar) is configured in a vastly different way to sugar. It manages most of the queries and other data on the database side. This is making the use of federated tables a nightmare to impliment. We have tried using API's for everything we want to query but this also could take an age to do. So that is why we may be looking to patch into both databases at the same time on a module by module basis to keep the i.e. each module will access there own tables within another database. Hope this is enough info...

    Regards

    John

  5. #5
    routledge is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    London
    Posts
    98

    Default Re: Pulling from two databases

    Further to Androples

    Connect sugar to two databases, would probably be the best

    Regards

    John

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Synching two discrete databases
    By rgarriso in forum Help
    Replies: 0
    Last Post: 2008-07-29, 08:28 PM
  2. Importing multiple databases
    By jpko in forum Help
    Replies: 0
    Last Post: 2007-03-14, 08:17 AM
  3. Replies: 3
    Last Post: 2006-12-13, 07:13 PM
  4. Multiple SugarCRM Databases
    By mantislee in forum Help
    Replies: 1
    Last Post: 2006-01-20, 11:00 PM
  5. v2.0.1 vs v2.5.1 databases
    By Nixy in forum Help
    Replies: 0
    Last Post: 2005-04-05, 01:23 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
  •