473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

mssql_connect problems

I'm trying to connect to MSSQL server 2000 using IIS 6.0. The only way I've
been able to connect, however, is by disabling anonymous access and setting
mssql.secure_connection = On. If I try to connect with anonymous access
turned on it tells me:
Warning: mssql_connect(): message: Login failed for user 'NAME\IUSR_NAME'.
(severity 14). Why does it automatically try to connect using the IUSR
account when I specify the username and password in the function call?
For obvious reasons I want to users on the intranet to be able to use the
pages, and I also want to be able to change the username / password that
connects to the database. I've been googling around and tried to set PHP up
as an ISAPI but to no avail.
Could anyone kick me in the right direction?

Cheers,
Håvard
Jul 17 '05 #1
3 3926
Hi,

On Wed, 21 Jul 2004 15:44:57 +0200, "Håvard Olerud Eriksen"
<he******@PANTSyahoo.com> wrote:
I'm trying to connect to MSSQL server 2000 using IIS 6.0. The only way I've
been able to connect, however, is by disabling anonymous access and setting
mssql.secure_connection = On. If I try to connect with anonymous access
turned on it tells me:
Warning: mssql_connect(): message: Login failed for user 'NAME\IUSR_NAME'.
(severity 14). Why does it automatically try to connect using the IUSR
account when I specify the username and password in the function call?
For obvious reasons I want to users on the intranet to be able to use the
pages, and I also want to be able to change the username / password that
connects to the database. I've been googling around and tried to set PHP up
as an ISAPI but to no avail.
Could anyone kick me in the right direction?

Could you provide some code? I'm using it on Linux/Apache with
FreeTDS, but maybe I can still help you.

Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #2
"Håvard Olerud Eriksen" <he******@PANTSyahoo.com> wrote in message
news:2m************@uni-berlin.de...
I'm trying to connect to MSSQL server 2000 using IIS 6.0. The only way I've been able to connect, however, is by disabling anonymous access and setting mssql.secure_connection = On. If I try to connect with anonymous access
turned on it tells me:
Warning: mssql_connect(): message: Login failed for user 'NAME\IUSR_NAME'.
(severity 14). Why does it automatically try to connect using the IUSR
account when I specify the username and password in the function call?
For obvious reasons I want to users on the intranet to be able to use the
pages, and I also want to be able to change the username / password that
connects to the database. I've been googling around and tried to set PHP up as an ISAPI but to no avail.
Could anyone kick me in the right direction?

Cheers,
Håvard


Might be a dumb question but did you turn on SQL Server authentication?
Jul 17 '05 #3
> > Cheers,
Håvard


Might be a dumb question but did you turn on SQL Server authentication?

Thanks! I solved it by turning this on. Sometimes it's hard to see the
forest for all the trees :-)

Håvard
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jochen Daum | last post by:
Hi, I'd like to use a DNS entry for the server name in mssql_connect. The documentation on php.net says, I have to specify the server name in the interfaces file (I assume...
4
by: Biffo | last post by:
I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the webserver. All is working well, except I get a - Fatal error: Call to undefined function mssql_connect() in...
2
by: elsC | last post by:
Bonjour, Je viens d'installer SQL Server 2000 Dev edition. J'ai créé des connexions sécurisées SQL Server et pourtant lorsque j'essaie de me connecter avec PHP (mssql_connect('localhost',...
2
by: David Haynes | last post by:
I can't seem to get the magic to work to connect to SQL Server via mssql_connect(). I can get odbc_connect to work just fine, but not mssql_connect. Could someone please post an example of how the...
6
by: spamguy21 | last post by:
I have a server with Windows 2000, PHP 5, IIS and SQL Server 2000 running. Individually, each works great. When trying to bring PHP and MSSQL together, though, I'm tearing my hair out...it just...
13
by: printline | last post by:
Hello I have problems connecting to my MSSQL through php. I have a microsoft windows server 2003, web edition with php5 installed and Microsoft SQL Server: SQL Server 2005 Express Edition as my...
4
by: aryan2cool | last post by:
hii all i am using php 5 and a warning has occured in my application " Warning: mssql_connect() : message: Login failed for user 'PAYDATA'. (severity 14) in C:\WINNT\Temp\tmpqjqokj.php on...
2
by: mirali00 | last post by:
Hello, This is a strange one! I'm getting blank results for mssql_connect. I created a simple testmssql.php page with the following code: <?php if (function_exists('mssql_connect')) {...
3
Ciary
by: Ciary | last post by:
hi all, i've encountered a new problem. i was trying to connect to a ms sql server (9.0) to connect i use this: mssql_connect("***.***.***.***","User","userpw"); and i got this error:...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.