Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Prgress Bar update with sql server procedure

Posted on 2003-11-08
5
Medium Priority
?
135 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 500 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

722 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