CodeIgniter Forums
Could not connect to MSSQL database - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Could not connect to MSSQL database (/showthread.php?tid=58711)



Could not connect to MSSQL database - El Forum - 07-11-2013

[eluser]christatedavies[/eluser]
I get the attached error message randomly throughout the day, there is no real reason for it as far as I can tell. And there is no trigger for it happening. When I do get it, a refresh of the page will usually solve it.

My problem is that this is a development project, and I don't want these issues to happen for the user once the project goes into production mode. It won't look good.

Is there anyway I can drill down to find out what is causing the errors?

-- Little background info --
The MSSQL database (Microsoft SQL Server Express 2012) is running on a VirtualBox VM running Windows Server 2012, and the PHP code is running on another VM running CentOS Server 6.4 running on PHP 5.4.15.

I am using Chrome/Firefox on MacOS to browse the site.


Could not connect to MSSQL database - El Forum - 07-11-2013

[eluser]jairoh_[/eluser]
check your database.php if you have set the right values in connecting your db like the database name, username, password


Could not connect to MSSQL database - El Forum - 07-12-2013

[eluser]christatedavies[/eluser]
[quote author="jairoh_" date="1373581800"]check your database.php if you have set the right values in connecting your db like the database name, username, password [/quote]

If those details were incorrect then it would never connect. This error only appears now and again.