Search code examples
phpsql-server-2008zend-frameworkpdozend-db

PHP PDO error in Zend framework after a migration of a MSSQL SERVER with an error Connection


After a planned migration of the old MSSQL Server professional to the last MSSQL Server Express version, I have a problem with the connection with an old PHP project that use Zend framework to connect on MSSQL server I suppose with PDO library.

the error message is:

Connection failed: SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (severity 9)

the connection configuration is:

Mein_Db::registry('mssql', Mein_Db::factory('dblib', array( 'host' => 'xx.xx.x.xx', 'username' => 'sa', 'password' => 'xxxxxxx', 'dbname' => 'xxxxxxx' )) );

Thanks in advance, Gianluca


Solution

  • sorry but was an error of ip configuration of the MS SQL Server. Thank to all.

    Gianluca