From 9869f5b94e5fae729be6c68077bd93c52944cc61 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 16 Feb 2016 21:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3sqlsrv=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/driver/Sqlsrv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/driver/Sqlsrv.php b/library/think/db/driver/Sqlsrv.php index 44710268..6a554771 100644 --- a/library/think/db/driver/Sqlsrv.php +++ b/library/think/db/driver/Sqlsrv.php @@ -36,7 +36,7 @@ class Sqlsrv extends Driver */ protected function parseDsn($config) { - $dsn = 'sqlsrv:dbname=' . $config['database'] . ';Server=' . $config['hostname']; + $dsn = 'sqlsrv:Database=' . $config['database'] . ';Server=' . $config['hostname']; if (!empty($config['hostport'])) { $dsn .= ',' . $config['hostport']; }