473,480 Members | 2,271 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Asynchronous access to database.

Hi all,

I am having application which is executing one stored procedure.
My stored procedure is taking nearly 10 to 15 min to execute. So i
dont' want to wait for that much amount of time.

What i want is to create say 2 threads and execute same stored
procedure with 2 different paramter with two different thread.

In short i want to execute stored procedure asychronosusly. I am having
studio 2003 and not 2005.

I know in .net studio 2005 there are methods provided for asychronous
execution.

But i want to implement it in 2003.

Can someone tel me how to do this.

Any help will be truely appreciated.

Thanks in advance,

Feb 20 '06 #1
2 1609
archana <tr**************@yahoo.com> wrote:
I am having application which is executing one stored procedure.
My stored procedure is taking nearly 10 to 15 min to execute. So i
dont' want to wait for that much amount of time.

What i want is to create say 2 threads and execute same stored
procedure with 2 different paramter with two different thread.

In short i want to execute stored procedure asychronosusly. I am having
studio 2003 and not 2005.

I know in .net studio 2005 there are methods provided for asychronous
execution.

But i want to implement it in 2003.

Can someone tel me how to do this.

Any help will be truely appreciated.


Just start a new thread and within that thread work synchronously.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Feb 20 '06 #2
Jon, what's the pros/cons of using async call with delegate-driven approach,
performing BeginInvoke, in that case?

PS: let's put aside desing issues

"archana" wrote:
Hi all,
I am having application which is executing one stored procedure.
My stored procedure is taking nearly 10 to 15 min to execute. So i
dont' want to wait for that much amount of time.

What i want is to create say 2 threads and execute same stored
procedure with 2 different paramter with two different thread.

In short i want to execute stored procedure asychronosusly. I am having
studio 2003 and not 2005.

I know in .net studio 2005 there are methods provided for asychronous
execution.

But i want to implement it in 2003.

Can someone tel me how to do this.

Any help will be truely appreciated.

Thanks in advance,


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Feb 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5313
by: Jill Graham | last post by:
Hi, I'm using an access database and found following problem : I have a table X with 2 records : record 1 & record 2. I execute following procedure with 2 steps : 1. The procedure deletes...
1
2006
by: hs | last post by:
H I am using the articles by Matt Powell about server side asynchronous web methods (as well as the client side article) However i dont see any improvements to the speed of my application. I'm...
6
5032
by: Toralf Kirsten | last post by:
Hi, we are using a test and a production dbms, separately. The test db is installed on Win2K DB2 UDB V8.1.0. The prod. db is running under Redhat Linux 9 and also uses DB2 V8.1.0. My application...
0
885
by: Dave Mullen | last post by:
I'm trying to access a SQL server from a thread started from an asp.net application and get a "Cannot log into database as user null..." error. How can I make the thread inherit the same identity...
7
9680
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
1
2853
by: dba123 | last post by:
I need to perform Asynchronous Inserts using DAAB. So far I have a method which does an insert but how can I do this Asyncronously so that it does not affect the load on our public production...
8
1721
by: Simon Gorski | last post by:
I have a large problem, and I believe there is not yet a way to solve this using IIS and ASP.NET. I hope someone has a solution which we couldn't find. The current situation When a user logs...
0
998
by: vpidatala | last post by:
Hi All, I am lil confused with different ways of asynchronous data access. My understanding is that, asynchronous data access frees up a thread instead of engaging it while a stored proc is...
0
1739
by: Bishoy George | last post by:
Hi, I have a asp.net 2.0 web application. I want to implement the asynchronous model through http handler in web.config ...
10
5818
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi, Problem: How can I databind (or put) a SqlServer query's row return of 115,000 items into a ComboBox quickly? Not much longer than a matter of seconds, that is... Scenario: I am...
0
6911
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7050
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7091
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5344
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4787
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2999
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2988
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.