Solved

How do I not wait for execution of Stored Procedure?

Posted on 2002-06-27
3
191 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
[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
3 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 100 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

752 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