如何在sqlsrv上将php应用程序连接到localdb?

时间:2018-02-07 13:27:50

标签: php sql-server sql-server-2008 odbc toad

我会向任何聪明的人发送明信片,让我向前推进以下问题:

Toad和Microsoft SQL Server Management Studio可以看到它

以下是代码:

$serverName = "(Local)\\Takdzwiedz_DB";

$db = "eraz_v3_local";

$connectionInfo = array("Database" => "$db");

$conn = sqlsrv_connect($serverName, $connectionInfo);

sqlsrv_errors()结果:

[ODBC Driver 13 for SQL Server]SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]`enter code here`

0 个答案:

没有答案