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 > Database Server Software > Microsoft SQL Server > An INSERT EXEC statement cannot be nested

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-12, 03:02
plsh plsh is offline
Registered User
 
Join Date: Nov 2004
Posts: 253
An INSERT EXEC statement cannot be nested

Good day,

I have a Stored Procedure which I need to use the output of in another Stored Procedure but I am not able to write the output of SP1 into a Temp table as I get the following error:
An INSERT EXEC statement cannot be nested

I cannot simply reqrite SP1 as it is locked and I am not able to see the contents of it.

Can anyone offer any assistance? I have tried OPENROWSSET but clearly I am doing something wrong as I can’t get that to work either. I need to pass 4 parameters to SP1 and somewhere some how I am doing something wrong.

Thanks
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On