PC Review


Reply
Thread Tools Rate Thread

Calling a Stored procedure on SQL Server asynchronously

 
 
=?Utf-8?B?SU5UUDU2?=
Guest
Posts: n/a
 
      26th Jul 2007
I thought someone over here might be able to help me with this problem from a
different angle. I posted on SQLServer.programming too, I apologize if this
is considered bad form. I would be using ADO record sets, and am familiar
with what's involved in calling a SP using that technology.



Back on 9/21/2004, Dan Ganiere asked about executing T-SQL asynchronously.

T-SQL itself doesn't support that, but Gregory A. Larsen had a work around.

Unfortunately, he used sp_OACreate, sp_OAGetErrorInfo, sp_OAMethod,
sp_OADestroy, which require my server to be reconfigured, and it's looking
like that will be a no go.

I would like to bring this issue up again. I want to fire a SP from Excel,
but I don't want to tie up Excel while executing a potentially long running
PROC bulk inserting and processing a file. (Excel made the file, that's how
it knows to tell SQL Server to run the proc)

Is there a way I can call something that returns control back to Excel right
away, that doesn't require me to reconfigure the server.

Bob


 
Reply With Quote
 
 
 
 
MH
Guest
Posts: n/a
 
      27th Jul 2007
As recommended in sqlserver.programming, look at "service broker" in SS.

MH

"INTP56" <(E-Mail Removed)> wrote in message
news:B9774C88-BCD3-45AF-927F-(E-Mail Removed)...
>I thought someone over here might be able to help me with this problem from
>a
> different angle. I posted on SQLServer.programming too, I apologize if
> this
> is considered bad form. I would be using ADO record sets, and am familiar
> with what's involved in calling a SP using that technology.
>
>
>
> Back on 9/21/2004, Dan Ganiere asked about executing T-SQL asynchronously.
>
> T-SQL itself doesn't support that, but Gregory A. Larsen had a work
> around.
>
> Unfortunately, he used sp_OACreate, sp_OAGetErrorInfo, sp_OAMethod,
> sp_OADestroy, which require my server to be reconfigured, and it's looking
> like that will be a no go.
>
> I would like to bring this issue up again. I want to fire a SP from Excel,
> but I don't want to tie up Excel while executing a potentially long
> running
> PROC bulk inserting and processing a file. (Excel made the file, that's
> how
> it knows to tell SQL Server to run the proc)
>
> Is there a way I can call something that returns control back to Excel
> right
> away, that doesn't require me to reconfigure the server.
>
> Bob
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with calling Stored Procedure on SQL Server Ivan Grozney Microsoft Access Queries 5 22nd Feb 2008 06:05 PM
Execute a stored procedure asynchronously Kyle Jedrusiak Microsoft Access ADP SQL Server 2 18th Jul 2007 05:30 PM
Get an error code after calling a SQL Server Stored Procedure. ab Microsoft ASP .NET 1 2nd Aug 2006 11:37 AM
calling a stored procedure on MS SQL Server within MS Excel 2000 Witold Domienik Microsoft Excel Worksheet Functions 2 2nd Mar 2004 05:35 PM
Re: Calling .net object method from sql server stored procedure Dave Stienessen Microsoft ADO .NET 0 13th Aug 2003 04:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 PM.