Thursday, 15 July 2010

php - sqlsrv_connect: Login failed for user -



php - sqlsrv_connect: Login failed for user -

i testing out new installation of 5.3:

<?php $servername = "ks252"; $connectioninfo = array( "database"=>"ocustom"); /* connect using windows authentication. */ $conn = sqlsrv_connect( $servername, $connectioninfo); if( $conn === false ) { echo "unable connect.</br>"; die( print_r( sqlsrv_errors(), true)); } ?>

and getting error:

unable connect. array ( [0] => array ( [0] => 28000 [sqlstate] => 28000 [1] => 18456 [code] => 18456 [2] => [microsoft][sql server native client 11.0][sql server]login failed user 'nt authority\anonymous logon'. [message] => [microsoft][sql server native client 11.0][sql server]login failed user 'nt authority\anonymous logon'. ) [1] => array ( [0] => 28000 [sqlstate] => 28000 [1] => 18456 [code] => 18456 [2] => [microsoft][sql server native client 11.0][sql server]login failed user 'nt authority\anonymous logon'. [message] => [microsoft][sql server native client 11.0][sql server]login failed user 'nt authority\anonymous logon'. ) )

what mean>? doing wrong?

php sql-server iis sql-server-2012

No comments:

Post a Comment