MSSQL access via PDO and Windows ODBC

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I'm running a "Windows Server 2003" with "MS SQL 2000" IIS and PHP5.1 as  
test environment for my project. I would like to access my MSSQL-Server  
via Windows ODBC and PDO. I created a System DSN an i enabled the PDO  
extension in my php.ini. But the following code snippet keeps failing:

         $DB = new PDO("odbc:LocalServer");
     catch (PDOException $e)
         echo $e->getMessage() . "<br>";

Here is the error message:

"could not find driver"

Any suggestions?



Site Timeline