SQL Server Developer Center > SQL Server Forums > SQL Server Driver for PHP > Specified driver could not be loaded due to system error 127 (SQL Server Native Client 10.0).
Ask a questionAsk a question
 

AnswerSpecified driver could not be loaded due to system error 127 (SQL Server Native Client 10.0).

  • Friday, September 18, 2009 4:07 PMroyroes Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    My configuration is:
    PHP 5.3
    SQL Server 2005 Express
    SQL Server Driver for PHP 1.1
    Microsoft SQL Server 2008's SQL Server Native Client

    When I run the sql server connection function in php, i get the following error message:
    "Specified driver could not be loaded due to system error 127 (SQL Server Native Client 10.0)."

    SQLSTATE: IM003
    Code: 160

    How can i fix this error?

Answers

All Replies

  • Friday, September 18, 2009 5:33 PMJay Kint MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    The SQL Server Driver for PHP 1.1 requires the SQL Server 2008 Native Client, which must be downloaded and installed before the PHP driver will work.  See this page for the feature pack. Locate the SQL Server 2008 Native Client section and download the msi for your platform.

    Install the msi and the message should no longer appear.  You can verify the proper ODBC driver is installed by locating the SQL Server Native Client 10.0 in the Drivers tab of the ODBC Data Sources control panel.

    Please follow up if you have further problems.

    Jay

    Jay Kint MSFT
  • Friday, September 18, 2009 5:57 PMroyroes Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    As mentioned in my configuration I've installed Microsoft SQL Server 2008's SQL Server Native Client

    When I look in the Drivers tab of my ODBC Data Sources I find:
    SQL Server Native Client 10.0 Version: 2007.100.2531.00

    Any other suggestions?

    Roy

  • Friday, September 18, 2009 8:44 PMSerban Iliescu - MSFTAnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Please post your connection string options, and we’ll investigate further.


    Thank you,

    Serban


    Serban Iliescu - MSFT
  • Friday, September 18, 2009 8:49 PMroyroes Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    I use the following connection function:
    public function connection() {
        	$connectionInfo = array (
     		'Database' => dbname,
    		'UID' => dbusername,
        		'PWD' => dbpassword   	
        	);
        	$this->db_link = sqlsrv_connect(dbhostname,$connectionInfo);
    		if (!$this->db_link){
    			die( print_r( sqlsrv_errors(), true));
    		}
    		
        }
    Hope this will help
  • Monday, September 21, 2009 3:07 PMroyroes Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I've tried reinstalling SQL Server 2005 Express and reinstalling the Microsoft SQL Server 2008's SQL Server Native Client.

    Still the same error!

    Phpinfo() tells me that the sqlsrv library is loaded succesfully...

    My operating system is Windows Server 2000 Service Pack 4

    Any other suggestions?
  • Monday, September 21, 2009 6:51 PMJay Kint MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    I don't see anything amiss in the information provided so far.  Can you write a small script and run it from the command line and connect to the database?

    Jay


    Jay Kint MSFT
  • Monday, November 02, 2009 8:27 AMVimm Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm having the exact same problem trying to use 1.1 and went back to 1.0.  I noticed the system requirements in the help file no longer list Windows 2000 Server SP4.  Maybe 2000 Server is no longer supported in 1.1?