Solved

Prgress Bar update with sql server procedure

Posted on 2003-11-08
5
128 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
  • 2
5 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 125 total points
Comment Utility
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
Comment Utility
I think my answer is OK.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now