473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Example of mssql_connect that works with SQL Server 2005?

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 hostname
field should be set up?

The SQL Server is on the same system as my php session.

Obviously, I am missing something because mssql_connect('localhost', '',
'') comes back with 'connection refused'.

-david-

Nov 22 '05 #1
2 5636
Try setting mssql.secure_connection in php.ini to on.

Nov 22 '05 #2
Chung Leong wrote:
Try setting mssql.secure_connection in php.ini to on.

Thanks for the suggestion but, unfortunately, it made no difference.

-david-

Nov 22 '05 #3

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

Similar topics

3
by: Håvard Olerud Eriksen | last post by:
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...
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',...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.