Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:localhost

ENGLISH

Together with PHP and Apache server I was using MS SQL 2000 database. After upgrading database to MS SQL 2012 aplication (which was using db) start to show error at connecting to db: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server…After longer search I fund the solution –  the library file ntwdblib.dll . For MS SQL versions 2005 and higher it has to be at least version 2000.80.194.0.

When I changed dll it started working. Jeah 🙂

ntwdblib

 

SLOVENSKO

Skupaj z PHP-jem in apache strežnikom sem uporabljal bazo v MS SQL 2000. Pri nadgradnji baze v MS SQL 2012 je aplikacija začela javljati napako že pri priklopu na bazo: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server… Po daljšem iskanju sem odkril kje je problem – v knjižnici ntwdblib.dll . Ta mora biti za MS SQL verzije, ki so novejše od 2005 vsaj verzija 2000.80.194.0.

Ko sem zamnejal dll je zadeva začela delovati! Jupi 🙂

ntwdblib

Leave a Reply

Your email address will not be published. Required fields are marked *