note 115005 added to ref.pdo-sqlsrv.connection
| From: | alasdair at angryloner dot com dot au | Date: | Mon, 12 May 2014 04:09:36 +0000 |
| Subject: | note 115005 added to ref.pdo-sqlsrv.connection | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199514@lists.php.net to get a copy of this message | ||
Adding the backslash solved the problem for me.
Here's my functioning localdb connection string:
new PDO("sqlsrv:Server=(localdb)\\v11.0 ; Database = my_db ; AttachDBFilename =
C:\Users\user\my_db.mdf", "", "");
----
Server IP: 72.52.91.14
Probable Submitter: 203.52.129.88
----
Manual Page -- http://php.net/manual/en/ref.pdo-sqlsrv.connection.php
Edit -- https://master.php.net/note/edit/115005
Del: integrated -- https://master.php.net/note/delete/115005/integrated
Del: useless -- https://master.php.net/note/delete/115005/useless
Del: bad code -- https://master.php.net/note/delete/115005/bad+code
Del: spam -- https://master.php.net/note/delete/115005/spam
Del: non-english -- https://master.php.net/note/delete/115005/non-english
Del: in docs -- https://master.php.net/note/delete/115005/in+docs
Del: other reasons-- https://master.php.net/note/delete/115005
Reject -- https://master.php.net/note/reject/115005
Search -- https://master.php.net/manage/user-notes.php