Foi erro na hora de digitar só. Mas se fosse mostraria erro de sintaxe.
Procurei na documentação do PHP
http://br.php.net/fu...n.mssql-connecte encontrei alguns usuários que tiveram o mesmo problema que eu. Parece que o deles eles resolveram.
I'm running PHP 4.3.3 on IIS on a Windows XP workstation and connecting to SQL Server 2000 on a remote server.
I found that even though I had "SQL and Windows Authentication" selected, and even if I was using the "sa" account, I wasn't able to connect to the database and I would receive the message:
Warning: mssql_connect(): message: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. (severity 14) in {filename} on line {line number}
I discovered that NT Authentication was turned on in php.ini:
[MSSQL]
mssql.secure_connection = On
By switching this to Off, the user name and password credentials supplied in the function call work correctly.
SQL Server Authentication Mode must be set to "SQL Server and Windows" or your SQL Server will not accept a connection and diplay:
Warning: MS SQL message: Login failed for user 'myuser'. Reason: Not associated with a trusted SQL Server connection. (severity 14) in...
O primeiro falou que era pra editar o php.ini e colocar off na linha:
mssql.secure_connection = On
O segundo falou que era para usar autenticação de rede. Eu estava usando um usuário do SQL Server. Fiz as duas sugestões, mas não funcionaram. A linha já estava definida em off. Tentei com um usuário da rede, mas não funcionou...