Cannot open database requested by the login. The login failed.

By | February 13, 2012

Have you ever encountered this error message “Cannot open database [XXXX] requested by the login. The login failed. “ While installing CRM patches with SQL Server and MSSQL services both available on the same SQL server??? As the error says there might be many reasons for it to not to connect to database like network dis-connectivity, database not accessible through the port assigned or insufficient privileges.
The most common error that occurs with latest versions of CRM is because we need to provide the port number of database server too at the time of installation. This port is always by default 1433, however sometimes users install multiple versions of SQL server on db server both of them consuming the same port i.e. 1433. In this case while installing CRM it won’t be able to identify which SQL server to connect to through the port number entered, hence the port number of any one has to be changed.
Below is how you can do the same on database server. Before doing this we have to identify the open TCP port to be used on database server and used the same here. I am using 1434 for demonstration purpose.

  1. Open SQL Server Configuration Manager from Start menu.
  2. Go to SQL Server Network Configuration
  3. Select Protocols for MSSQLServer
  4. Right click on TCP\IP
  5. Enter TCP Port Number (For e.g. 1434) in all the sections.
  6. Click Apply and OK button.
  7. Right-click and restart the SQL Server service for changes to take effect.

Once you are done with the above changes run the setup file to install the patches and enter the specific port number. You can follow the similar steps mentioned above to find the TCP IP pot being used by SQL server you intend to connect if you are not familiar about which port to be used.

About Us
Greytrix a globally recognized Premier Sage Gold Development Partner is a one stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix has some unique integration solutions for Sage CRM with Sage ERPs (Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100Sage 500 and Sage 300).We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users and Sage PSG worldwide. Greytrix helps in migrating of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature and Sage CRM CTI Framework.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.