Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Friends,

I am facing problem while adding/inserting data from a stored procedure into a table.

I am using the command as under:-

insert @temp_Item_Indent_Details exec sp_item_indents_description @itemL4Id



Where @temp_Item_Indent_Details=temporary table, @sp_item_indents_description=stored procedure and @itemL4Id=stored procedure parameter

What is the procedure and the set of instructions required to perform the same function?

Thanks

Varun Sareen
Software Developer
Posted
Updated 11-Oct-10 0:34am
v3

1 solution

Can you give more details about the problem that you are facing?

Moreover, a simple Google search will tell you how to create and use stored procedure in your application.
 
Share this answer
 
Comments
Varun Sareen 11-Oct-10 6:22am    
Dear Ankur

I am making a stored procedure that requires data from another stored procedure; that i need to put into a temporary table and have to do some cursor level programming on the data inserted into the temporary table but i am not able to perform the same operation. And if i have found a concrete answer from google search then i would not have posted my query on codeproject.

Kindly help.

Thanks
Ankur\m/ 11-Oct-10 6:36am    
Hi Varun,
Do you realise that you haven't given much details here. Saying that you are facing problem with something doesn't help much. You need to provide the code that you tried. You also need to give error details if any.
Add more details to the question.
And about the Google thing, search for "adding/inserting data from a stored procedure into a table" (an extract from your question) and see what you get.

Hope this makes sense.
Varun Sareen 11-Oct-10 6:51am    
Thanks dear Ankur for the concern but i got the answer myself. It was only due to the no of columns that i was making in the new table structure was wrong.
Ankur\m/ 11-Oct-10 6:59am    
I am glad to hear that you got it working.
We, sometimes, are so lazy to look into the issue because we know someone would give an answer in the forum and later realise that it was a silly mistake. Please don't take it otherwise. I just want to say that trying hard can make anything possible. :thumbsup:
Cheers!
Varun Sareen 16-Oct-10 2:54am    
Thanks dear Ankur :).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900