Error occurred while trying to establish communication with the SQL Server
Error: "An error occurred while trying to establish communication with the SQL Server on this computer. Please ensure that SQL Server is operational."
Causes include the SQL service not running, database permissions, or database corruption.

Resolution
Command Prompt
Test a SQL connection as an administrator: sqlcmd -S .\gallagher, then use ccftcentral (or use cftevent to check the event database), then select * from single values, then go.
Windows Services
Check the user account the SQL instance runs under has not changed. This can happen during an upgrade of the SQL instance during a Command Centre upgrade, in rare circumstances.

🔗 Related
Databases - An Overview of Command Centre and SQL. SQLCMD connection test and service accounts.
Command Centre - Errors - Backup Not Working. Another SQL connection fault after a server rename.
Last updated
Was this helpful?
