If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ADO Connection Execute Hanging

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-14-04, 16:35
WhiZa WhiZa is offline
Registered User
 
Join Date: Feb 2002
Posts: 58
ADO Connection Execute Hanging

I'm executing a stored procedure (Connection.Execute(Proc)) in SQL server on my ASP page and the procedure runs about 30 seconds. How do I execute the procedure, and then go to the next line of code right away? Right now, it sits and waits for the procedure to complete until it moves on.
Reply With Quote
  #2 (permalink)  
Old 10-14-04, 20:29
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
err,... in standard asp using standard ado I don't believe you can. if anyone knows a way please feel free to prove me wrong.
Reply With Quote
  #3 (permalink)  
Old 10-15-04, 02:10
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
You'd have to have a scheduler running.. You could have a DTS package that runs every few minutes that checks a table with a row that flags whether the SP should be run or not. Then you could use ASP to turn the flag on.
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #4 (permalink)  
Old 10-15-04, 02:15
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Yeah, you could do that. You wouldn't need to schedule it though. You could just set up a job and start the job running.
Reply With Quote
  #5 (permalink)  
Old 10-15-04, 04:37
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
I've never been able to execute a DTS package through ASP. You?
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #6 (permalink)  
Old 10-15-04, 09:15
WhiZa WhiZa is offline
Registered User
 
Join Date: Feb 2002
Posts: 58
You can programmaticly create a DTS job using sp_add_job, but it would be a bitch to maintain. I guess I'll end up going with the schedule idea
Reply With Quote
  #7 (permalink)  
Old 10-16-04, 18:53
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
I wouldn't create it programaticly, just execute it. Yeah Sepp. I have done it for a couple of projects that did alot of processing using dts.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On