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
211 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
asp web application 3 37
Securing WEBAPI on Azure 2 20
sql query 5 41
Problem Backingh Up Transaction Log on Old SQL000 Database 3 21
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to shrink a transaction log file down to a reasonable size.

735 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