?
Solved

Give user feedback during long running query

Posted on 2010-09-06
7
Medium Priority
?
760 Views
Last Modified: 2012-05-10
Hello,

Using vb.net vs 2008 and SQL Server 2000 in a windows forms application, I'd like to provide the user with some feedback when they request a large recordset.  I am using a search form where they can enter multiple criteria and the SQL Statement is created on the fly.  If they want a years worth of data for example, it might return hundreds of thousands of records.  This takes several minutes with the only option to stop the search clicking the close form button and killing the program.  

One option I saw was creating a moving marquee but that doesn't give the user an estimate of the time to fill the dataset.

Ideally I'd like a way to tell the user what is happening besides that annoying wait cursor.  A record count as the records are sent over would be awesome (I thought about creating a govenor to limit the records to 5000 or whatever the user chooses but they need to have a fully open search capability).  Is there any way to ask the server what the status is of the query?  I suspect I'm getting into multithreading hell here but I've found users get frustrated if they don't see something return in 5 seconds or less...

Thanks for any ideas
0
Comment
Question by:zipnotic
[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
  • 2
  • 2
  • +1
7 Comments
 
LVL 13

Expert Comment

by:game-master
ID: 33614476


good morning!

you can use progress bar here...

take a look on this link...

http://www.experts-exchange.com/Microsoft/Development/Q_24316964.html?sfQueryTermInfo=1+10+30+bar+progress+us+vb.net


i hope i can give you some idea...


game-master
0
 
LVL 8

Accepted Solution

by:
PagodNaUtak earned 1000 total points
ID: 33614789
I suggest you to use paging... Do not load the entire records just 100 of the results.
The user will have an option to select next batch of records.
Here is an example queries using SQL Server 2005
http://www.davidhayden.com/blog/dave/archive/2005/12/30/2652.aspx
http://www.15seconds.com/issue/070628.htm 
0
Independent Software Vendors: 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!

 
LVL 8

Expert Comment

by:PagodNaUtak
ID: 33614793
0
 
LVL 7

Expert Comment

by:Inteqam
ID: 33614924
I go for paging too
0
 
LVL 7

Expert Comment

by:Inteqam
ID: 33614933
if that is not an option, Telerik has a good grid with a Load-On-Demand feature. it loads records when scrolling to see more records.
0
 

Author Closing Comment

by:zipnotic
ID: 33618878
Paging will work for me thank you.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

762 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