Connecting from command line fails
Posted: Fri Oct 05, 2007 3:06 am
Hello,
Here's a small test script I use to test connecting to an SQL Express server:
The above script connects fine when running it via Apache, but it fails via CLI. I have no idea why this is happening. Any ideas you guys may have?
I'm on Vista x86, Apache 2.2, PHP 5.2.4, ntwdblib.dll is the right one.
Here's a small test script I use to test connecting to an SQL Express server:
Code: Select all
$connection = @mssql_connect('.\SQLEXPRESS', 'sa', '123123123');
echo $connection === false ? 'Failure.' : 'Connected.';I'm on Vista x86, Apache 2.2, PHP 5.2.4, ntwdblib.dll is the right one.