473,322 Members | 1,755 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,322 software developers and data experts.

Warning: mssql_connect()

Hi all,

I'm trying to connect to MSSQL by using PHP but I got the following error:
Expand|Select|Wrap|Line Numbers
  1. Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 
When I'm using ODBC to connect MSSQL with the same connecting details, I succceed, so it's not a problem of wrong connection details

Please, I'm waiting to some advice...
Thank you
Mar 16 '08 #1
1 2830
ronverdonk
4,258 Expert 4TB
All I can do for now is show you some entries in the PHP documentation about mssql_connect
Windows Server 2003 and XP users...If your call to mssql_connect keeps failing, get the latest version of ntwdblib.dll.

I can't for the life of me understand this, but the one included and installed with php is old and doesn't work with SQL Server 2005. And this is as of PHP 5.2.5!

PHP installer version -> 2000.2.8.0
You want -> 2000.80.194.0.

Just pop that sucker into your php install directory and it should work assuming everything else is configured correctly.

I really hope they start bundling the new version by default soon.
and THIS LINK.

It seems that module ntwdblib.dll plays a significant part in this problem.

Ronald
Mar 16 '08 #2

Sign in to post your reply or Sign up for a free account.

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...
12
by: aryan2cool | last post by:
hii i have faced a fatel error like.."Fatal error: Call to undefined function: mssql_connect() in c:\winnt\temp\tmphrivp8.php on line 7" i am using php with plone in windows xp pro.. any...
8
by: dreamer247 | last post by:
hi i am working on a intranet project for last 10 days.the project was previously under someone else... technologies used are php,zope plone mssql in winxp pro. the project in a different server...
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')) {...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.