Click here to Skip to main content
15,896,118 members

Run Two stored procedures simultaneously in the background worker

dmunisubbu asked:

Open original thread
In my WPF application,

When user click on the export button,I am exporting large data to the .CSV file.

for this process i am using backgroundworker. Here its exporting fine and its take long time.

At the same time i need to update Progress Bar.

For this reason,i need a solution like.

In the background worker, we need to use two stored prcedures.

1.for getting the result.(Main stored procedure).
here we are using cmd.executereader for reading and writing to the .csv file.

2.we will get status from another stored procedure.

my problem is how can we run both the stored procedures at the same time in background.
one stored procedure for execution and another stored procedure for update the progress bar.


Please let me know how can proceed with this.
Tags: Windows, WPF, BackgroundWorker

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



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