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
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Myth Busting: MongoDB Scalability (it scales!)

I was talking with one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. He mentioned to me that several customers have been telling him that “MongoDB doesn’t scale!” MongoDB’s scalability was in question?

My response was, “Is that a joke?"

Question has a verified solution.

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

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.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

623 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