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

MSSQL slow on IIS 6

I built a PHP website on Windows 2000 (using IIS) that connects to a
SQL Server 2000 database using the mssql functions. I migrated the
website and the database onto a Windows 2003 machine, and now the mssql
functions are significantly slower. On the Windows 2000 machine, the
mssql_connect takes .03 seconds to run, and the odbc_connect takes the
same amount of time. On Windows 2003, the mssql_connect takes a full
second to run, but odbc_connect only takes .017 seconds. I have tried
both ISAPI and CGI for the php configuration in IIS, and I have
experimented with different values for the output_buffering parameter
in php.ini, but neither of these seem to make a difference. Why would
the mssql commands be so much slower on IIS 6? I would rather not have
to change all the database calls to be odbc instead of mssql

Sep 8 '06 #1
8 6309
php-taz wrote:
I built a PHP website on Windows 2000 (using IIS) that connects to a
SQL Server 2000 database using the mssql functions. I migrated the
website and the database onto a Windows 2003 machine, and now the mssql
functions are significantly slower. On the Windows 2000 machine, the
mssql_connect takes .03 seconds to run, and the odbc_connect takes the
same amount of time. On Windows 2003, the mssql_connect takes a full
second to run, but odbc_connect only takes .017 seconds. I have tried
both ISAPI and CGI for the php configuration in IIS, and I have
experimented with different values for the output_buffering parameter
in php.ini, but neither of these seem to make a difference. Why would
the mssql commands be so much slower on IIS 6? I would rather not have
to change all the database calls to be odbc instead of mssql
How do you authenticate? SQL user/password or secured connection?

Sep 8 '06 #2
php-taz wrote:
I built a PHP website on Windows 2000 (using IIS) that connects to a
SQL Server 2000 database using the mssql functions. I migrated the
website and the database onto a Windows 2003 machine, and now the mssql
functions are significantly slower. On the Windows 2000 machine, the
mssql_connect takes .03 seconds to run, and the odbc_connect takes the
same amount of time. On Windows 2003, the mssql_connect takes a full
second to run, but odbc_connect only takes .017 seconds. I have tried
both ISAPI and CGI for the php configuration in IIS, and I have
experimented with different values for the output_buffering parameter
in php.ini, but neither of these seem to make a difference. Why would
the mssql commands be so much slower on IIS 6? I would rather not have
to change all the database calls to be odbc instead of mssql
I think an mssql newsgroup might be a better place to ask this. I
suspect it's going to be in some parameters in mssql.

There shouldn't be any difference from the PHP end.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 8 '06 #3
I am using a secured connection:

$sqlconnect=mssql_connect("10.4.61.156","","") or die ("unable to
connect");
Chung Leong wrote:
How do you authenticate? SQL user/password or secured connection?
Sep 11 '06 #4

php-taz wrote:
I am using a secured connection:

$sqlconnect=mssql_connect("10.4.61.156","","") or die ("unable to
connect");
Chung Leong wrote:
How do you authenticate? SQL user/password or secured connection?
Try it with SQL Server authentication instead and see what happens.

Sep 11 '06 #5
Same thing, it takes a full second to connect. Another difference
between the two servers is that SQL Server on the old machine is set up
to use just Windows Authentication, while this new server uses Mixed.
Would this effect connection speed?

Chung Leong wrote:
Try it with SQL Server authentication instead and see what happens.
Sep 11 '06 #6
Fixed. In IIS, the web site was not set to Integrated Windows
authentication. It was using the anonymous user account

Sep 11 '06 #7
Actually this is not quite fixed. I need to use Integrated Windows
authentication, and that is what's slow. When I enabled Anonymous
Access with a username that is in the local Administrator's group,
connection was fast. When I remove anonymous access, and the user
accessing the web site is a local Administrator, it is still fast. Any
non-admin has a slow connection with Windows authentication. How can I
use just Windows authentication and have the connection be fast for
users who are not local Administrators?

Sep 14 '06 #8
php-taz wrote:
Actually this is not quite fixed. I need to use Integrated Windows
authentication, and that is what's slow. When I enabled Anonymous
Access with a username that is in the local Administrator's group,
connection was fast. When I remove anonymous access, and the user
accessing the web site is a local Administrator, it is still fast. Any
non-admin has a slow connection with Windows authentication. How can I
use just Windows authentication and have the connection be fast for
users who are not local Administrators?
Sounds like you need to follow up in a Windows related newsgroup. This
definitely isn't a PHP problem.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 15 '06 #9

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

Similar topics

5
by: Alper Adatoz | last post by:
Hi, i have a little problem. i hope u guys give me a clear solution (: db: mssql i just want to put jpeg file to the image field at the mssql db. and after that i want to call it back..
2
by: Pablo | last post by:
C:\Program Files\Microsoft SQL Server\MSSQL\Data\" contains .mdb and ..ldb files that are huge, some reach 21GB! while backup files don't exceed 8MB. I guess it's a kind of transaction log, but...
4
by: Edgardo Rossetto | last post by:
Hello. I'm desperately looking for somethign like phpMyAdmin but written in ASP.NET for MSSQL. can anyone recommend me a software? I'm also looking for a bug tracking system. Can anyone...
3
by: gharmel | last post by:
I'm trying to get some clues on why I get (much) slower responses from my PHP applications when dealing with a remote sql server as opposed to a local sql server. Here's my situation: Server...
4
by: Peter | last post by:
Hello I have 2 locations, that each has an MSSQL 2000 server. Since the locations are to far from each other and the connection is very slow. My thought was to have a database on both servers...
16
by: davemateer | last post by:
Hi We have a current system: Linux / Apache / PHP4.x talking to Microsoft SQL 2000 Thinking about going to: Windows 2003 / PHP4.x talking to the same Microsoft SQL 2000 box...
4
by: ThePhenix | last post by:
Hi everybody, I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend. I finished the conversion today (as quite a lot of the...
2
by: gnomee2 | last post by:
Hello Everyone, I have a strange problem that I cannot seem to solve. I have two server running Windows 2003 MSSQL on one IIS on the other. Out of the blue I have slow queries that cause asp...
8
by: pechar | last post by:
Hi all, I created an application to copy certain tables from a database on MSSQL server to another database on MYSQL server which is on another server (very very very far away). The process works...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
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...

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.