PHP PDO Drivers for SQL Server

Asked

Viewed 180 times

0

It was with the same problem, I performed the steps indicated, however, I did not succeed in installing the SQL Server connection.

Versions:

  • PHP = 5.6.21;
  • OS = Windows Server 2008 R2 Enterprise SP1.

I installed the following components:

  • Copy of Dlls to the ext php folder: php_sqlsrv_56_ts.dll and php_pdo_sqlsrv_56_ts.dll (my php is for Thread Safety as per DLL "php5ts.dll");

  • I added in the file "php.ini" the extensions: "Extension=php_pdo_sqlsrv_56_ts.dll" and "Extension=php_sqlsrv_56_ts.dll";

  • In the image below, it is possible to notice that the extension was not enabled. inserir a descrição da imagem aqui

If anyone can help me.

  • In your script that tests connection, add this line ini_set('display_startup_errors', true); must show some error.

  • What is the message?

  • Pdoexception: could not find driver in C: Program Files Vertrigoserv www API on line 10.

  • This was the message... but as I said in the question, I already copied the files to the folder "ext", configured in the file "php.ini" and restarted the vertrigo.

  • Other exevoltages you install smoothly?

  • This "php_pdo_odbc.dll" I managed to install. I even thought I should activate it too, however, by the tutorials I read does not need.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.