Solved

Prgress Bar update with sql server procedure

Posted on 2003-11-08
5
133 Views
Last Modified: 2010-04-17
How to update the progress bar in visual basic to show the progress of the batch insert using sql stored procedure which inserts 50 record in one transaction with max of 1000 records and I want to dispaly to the user after every 50 inserts?
0
Comment
Question by:KavithaVeeramani
[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
5 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 125 total points
ID: 9709708
Do you mean that you call SQL stored procedure 20 times from your code?
In this case, after every call to the stored procedure increment progress bar position and call DoEvents function.
Suppose you have progress bat with Min = 1, Max = 20:

' call SQL stored procedure...
ProgressBar1.Value = ProgressBar1.Value + 1
DoEvents            ' here progress bar is redrawn

0
 
LVL 48

Expert Comment

by:AlexFM
ID: 10319500
I think my answer is OK.
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress

617 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