Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I not wait for execution of Stored Procedure?

Posted on 2002-06-27
3
Medium Priority
?
194 Views
Last Modified: 2012-05-04
I have a VB app that is calling a stored procedure that takes 15 minutes to run (no problem as I expect this). The problem is that my VB app is waiting for SQL to return a value and so my VB app stops executing on that line of code.

How do I tell SQL to accept the execute command and release the VB app?
0
Comment
Question by:DLockwood
3 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 400 total points
ID: 7114167
You can call the Execute method with the adAsyncExecute option.

Anthony
0
 
LVL 5

Expert Comment

by:spcmnspff
ID: 7114414
First make sure that the machine running the vb has the isql utitly.  This can be found on your sql server.
Use the shell comnd in vb to call the isql utility form the command line, to execute the stored proc . . .

0
 

Author Comment

by:DLockwood
ID: 7114941
acperkins you were right on it! I was looking in the wrong place. It was not a SQL Server issue, but an option for my ADO Execute command.

Thanks for the help.

DLockwood
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

877 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