Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Is there an upper limit to the number of items in a listbox that ASP can search for?

Posted on 2007-11-28
3
Medium Priority
?
219 Views
Last Modified: 2008-03-08
Our users often need to search a SQL Server  table for a large number of 16-digit entries.  The ASP front-end that we've created allows the user to cut/paste all the items of interest into a listbox.  This approach works well unless the user is searching for a rather large number of items - say 20,000 or more, in which case no results are generated and this error appears:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]Changed database context to 'master'.
all_bin_results.asp, line 8

Line 8 of the code:
strInputList = Trim(Request("strInputList"))

Does anyone know what's causing this error?

Thanks in advance - Matt



0
Comment
Question by:hennessym
  • 2
3 Comments
 
LVL 17

Expert Comment

by:pssandhu
ID: 20371106
Try changing the default database for the login that you are using to connect to the server from 'master' to wahtever the database is.
0
 
LVL 1

Author Comment

by:hennessym
ID: 20374591
Thanks pssandhu, I tried that but am getting the same error message with the exception that the database name changed from master to ica_common (the database that contains the table).

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]Changed database context to 'ica_common'.

all_bin_results.asp, line 8

Any other ideas?
0
 
LVL 1

Accepted Solution

by:
hennessym earned 0 total points
ID: 20376122
Found the solution - had to increase the AspMaxRequestEntityAllowed Metabase property.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question