Quoting Gaurav Khambhala gaurav@deeproot.co.in:
Wherein our requirement is to interact with totally different mysql database than drupal's default one.
Review the comments in settings.php and see http://api.drupal.org/api/function/db_set_active for a function to change between DB.
-- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/