Re: Asynchronous database calls
- From: "William Vaughn \(MVP\)" <billva@xxxxxxxxxxxxxxx>
- Date: Tue, 8 Jul 2008 10:11:12 -0700
Sure. Use a BackgroundWorkerThread to start the async operation. While the Oracle and Sybase namespaces might not support the SqlClient asyn ops extensions, the BWT should do nicely.
"Amir Tohidi" <AmirTohidi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:1053EACB-087B-46BB-98B5-68DD3639372D@xxxxxxxxxxxxxxxx
Hi
Using .NET 2.0, is there anyway of invoking Sybase and Oracle stored
procedures asynchronously?
The scenario is this: we have some (Sybase and Oracle) stored procedures
that are taking a few minutes to run. This means that our middle tier objects
are “blocked” waiting for the stored procedures to return their results. I
know I can use a worker thread from the user interface to effectively kick
off the time consuming call to the middle tier and database. However, my real
goal is to release middle tier resources as early as possible. In other
words, I would like to invoke a stored procedure and immediately free up the
resources consumed by the middle tier (e.g. database connection). Then, when
the stored procedure completes, it somehow signals to the middle tier that
the data is ready.
I did something similar to this with SQL Server and extended stored
procedures, where my extended stored procedure called a COM component and
gave it the results.
Can this be done in a .NET 2.0, Oracle 10g and Sybase ASE 12 setup?
Thanks!
--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker’s Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________
.
- Follow-Ups:
- Re: Asynchronous database calls
- From: Amir Tohidi
- Re: Asynchronous database calls
- Prev by Date: Re: Importing a CSV into a Dataset (preferably. with VB.NET 2005)
- Next by Date: launch excel from asp.net
- Previous by thread: Re: Importing a CSV into a Dataset (preferably. with VB.NET 2005)
- Next by thread: Re: Asynchronous database calls
- Index(es):
Relevant Pages
|