一開始,在windows下根本無法載入mssql,後來發現能夠連線,結果跑出php
Warning: mssql_connect() : message: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. sql
就是什麼未信任連線, windows
搞了老半天,原來我用的mssql自己的認證,根本不用去NT認證!! server
因此在php.ini裡有這麼一行 blog
; Use NT authentication when connecting to the server
mssql.secure_connection = offci
答案呼之欲出了!!get
改off就行了!!it
天啊!!io
感謝網友rust
http://wyoojune.blog.163.com/blog/static/57093325201081794322977/