Solved

Prgress Bar update with sql server procedure

Posted on 2003-11-08
5
129 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
triangle challenge 4 120
countHi challenge 25 98
strCount chalenge 3 69
word0 challenge 3 78
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

22 Experts available now in Live!

Get 1:1 Help Now