Microsoft KB Archive/155494

= Limiting the Number of Records Returned by IDC =

Article ID: 155494

Article Last Modified on 6/22/2005

-

APPLIES TO


 * Microsoft Internet Information Server 1.0
 * Microsoft Internet Information Server 2.0

-



This article was previously published under Q155494



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



SYMPTOMS
When you use the Internet Information Server (IIS) Internet Database Connector (IDC) to query large databases, for example, a Microsoft SQL Server, a large amount of data may be returned causing the browser to hang for long periods of time.



CAUSE
If the query used is very general, a large number of records may be returned from the database. For example, Microsoft SQL Server can return up to 4 billion records from a single query. In most cases, this could be a large portion of the database. Various browsers will react differently because a large amount of data will be received.



WORKAROUND
To prevent browser overload, use the MaxRecords parameter in the .IDC file that you are using to make the database query. For example,

Datasource: Web SQL Username: sa MaxRecords: 100 Template: query.htx SQLStatement: +SELECT FirstName, LastName +FROM Guests ...

In this example, MaxRecords would limit the records returned to 100.

Additional query words: odbc iis htx idc

Keywords: kbenv KB155494

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.