I have this in my php info:
and
My code for connection:
- Code: Select all
$serverName = "192.168.40.12\SQLExpress";
try
{
$conn = new PDO("sqlsrv:server=$serverName;Database=VertiDFS", "", "");
$conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
}
catch(Exception $e)
{
die( print_r( $e->getMessage() ) );
}
And i see this error in my browser:
SQLSTATE[IMSSP]: This extension requires the ODBC Driver 11 for SQL Server to communicate with SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server ODBC driver for x86: http://go.microsoft.com/fwlink/?LinkId=1637121