Jump to content

Unable to connect do DB when executed from DOS prompt


fcaserio

Recommended Posts

On my application I have some automatic tasks where PHP is executed from DOS prompt.

When I run my scripts from Apache PHP connects to the MSSQL server with no problems.

But when I run it from DOS PHP is not connecting:

C:\PHP\php.exe c:\htdocs\script.php

Warning: mssql_connect(): Unable to connect to server:

 

Any ideas why it's happening?

MSSQL Server version: SQL2005

PHP version: 5.2.6

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.