• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1767
  • Last Modified:

Dynamics CRM 4 cannot connect to the database


I'm running Microsoft Dynamics CRM 4.0 on my company's network. I have a windows server 2003 with SQL Server 2008 as the DB server and a Win2003 x64 for the web application. After moving the DB to a new server, I had several errors connecting the web server to the DB. I added ports 1433 and 1434 to firewall exception list and my CRMAppPool is using NETWORK SERVICE identity. I added the computer name to SQL Server logins. I had several errors and now my situation is like this:

When I try to connect to the web application I get "Record Is Unavailable" error indicating: "The requested record was not found or you do not have sufficient permissions to view it."
When I try opening Deployment Manager or my CRM server, I only have "License" node in the MMC console.

I guess Deployment Manager is able to connect to the SQL Server and MSCRM_Config database, but I do even see the options to create a new organization and restore the old database over a new one.

Any ideas?
1 Solution
So you moved the SQL databases to a new SQL server.
Did you remove them from the old SQL server or are the services stopped there?

Are you able to create an ODBC Connection from the CRM server to the new SQL server (this should help determine if it is CRM or permissions or connectivity)  Try first with the SQL server SA account, then work towards the account you are logged in with. (was that account the CRM Administrator account? / Install account?)

If you move both databases, you need to modify the string for the MSCRM_CONFIG connection in the registry (that way you can fully use the Deployment Manager and thus move the SQL for the ORG_MSCRM database.

chargoonAuthor Commented:
I tried everything but nothing worked. I finally gave up and re-installed the CRM web application and let it configure the DB and everything then imported my organization database.

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now