I have been trying to initiate database trusted connection to MS SQL using PHP but failed. My PHP development machine is not part of the domain and the MS SQL server is in a domain. Unfortunately I cannot join my development machine to the domain. My DBA is reluctant to change the authentication mode of the SQL server.
Is there anyway for me to connect to the MS SQL server with trusted connection using PHP with just a domain logon credential?
Thank you
In Asp.net we can use
Integrated Security=True";
orTrusted_Connection=Yes;
in your connection string orTrusted Connection=SSPI" in connection string
in php go to the
php.ini
and verify themssql.secure_connection
parameter :