Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using c# 2005 and sql 2005 and i want to show progress bar when dataset is filling ....because my database contain huge ammount of data..
Posted

1 solution

You can't show a "real" progress bar - as you don't get any progress indication with a dataset as SQL only returns the data when it is complete. So unless you want to use a Marquee progress bar to just give the user some confidence, the only way to do it is to break the query up and return smaller chunks - you can then display a more accurate progress guide using a background worker thread and a standard progress bar.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900