Hello,
well, I am still trying to connect to SQL Server 2000 (MSDE) form PHP
I did the following:
1. enabled php_mssql.dll extension in php.ini (phpinfo() shows it)
2. every dll is in proper place (System32 or php folder and few more
folders just to be sure) including
ntwdblib.dll
I am running Apache, PHP 4.3.9 and MSDE on the same machine with Win2k
SQL server config.:
1. Two instances: default SERVER and SERVER\Portal
2. Both instances are using SQL auth mode, and user that I try to log
in has db admin rights
can't connect to any of the instances :(
I tried the following:
1. specyfing the port in mssql_connect ('SERVER\Portal ,1433') DIDN'T
WORK
2. different notations 'SERVER\Portal' or 'SERVER\\Portal ' DIDN'T WORK
3. different naming like: SERVER, localhost, 127.0.0.1 DIDN'T WORK
The ASP pages that are using the same sql server work fine :| so there
is a connection to the server for
ASP :]
So my question is what I did wrong?
and another question is: How to connect to a named instance of a sql
server if it isn't running on the
same machine with web server, what would be the connection string in
mssql_connect?? ????
Thanks for any advice
STEFAN
well, I am still trying to connect to SQL Server 2000 (MSDE) form PHP
I did the following:
1. enabled php_mssql.dll extension in php.ini (phpinfo() shows it)
2. every dll is in proper place (System32 or php folder and few more
folders just to be sure) including
ntwdblib.dll
I am running Apache, PHP 4.3.9 and MSDE on the same machine with Win2k
SQL server config.:
1. Two instances: default SERVER and SERVER\Portal
2. Both instances are using SQL auth mode, and user that I try to log
in has db admin rights
can't connect to any of the instances :(
I tried the following:
1. specyfing the port in mssql_connect ('SERVER\Portal ,1433') DIDN'T
WORK
2. different notations 'SERVER\Portal' or 'SERVER\\Portal ' DIDN'T WORK
3. different naming like: SERVER, localhost, 127.0.0.1 DIDN'T WORK
The ASP pages that are using the same sql server work fine :| so there
is a connection to the server for
ASP :]
So my question is what I did wrong?
and another question is: How to connect to a named instance of a sql
server if it isn't running on the
same machine with web server, what would be the connection string in
mssql_connect?? ????
Thanks for any advice
STEFAN
Comment