note 110407 modified in function.sqlsrv-connect by danbrown

From: Date: Thu, 06 Dec 2012 14:42:35 +0000
Subject: note 110407 modified in function.sqlsrv-connect by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192349@lists.php.net to get a copy of this message
In fact, you don't need to inform the instance name in some cases. When I inform my the instance name of my database server, it's throws an error: <?php //... $serverName = "192.168.0.11\SVDCBD01"; //... ?> Throws: [Microsoft][SQL Server Native Client 10.0]SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. And this works as well: <?php //... $serverName = "192.168.0.11"; //... ?> --was-- In fact, you don't need to inform the instance name in some cases. When I inform my the instance name of my database server, it's throws an error: <?php ... $serverName = "192.168.0.11\SVDCBD01"; ... ?> Throws: [Microsoft][SQL Server Native Client 10.0]SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. And this works as well: <?php ... $serverName = "192.168.0.11"; ... ?> http://php.net/manual/en/function.sqlsrv-connect.php

« previous php.notes (#192349) next »