Select Categories Below
Advertisement
Start Your Own Q&A Site
Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.
Status: Closed Points: 250 Time: 04:55 - Feb 12, 2009
grantmarrow
I have a select that returns one column with multiple rows which i will populate into a temp table. But then i need to pass that temp table to another stored procedure. Please explain with sample code as to how to do this.
Categories:
Add Categories
When adding more than one category, separate them with commas.
Mustafa
Date:: Mar 26, 2009
Time:: 06:14
You can do that by using #temp_table which will be accessible throw the called store procedures and functions for current session. Note: will be better to drop the table at the end of your work. example using Northwind DB: CREATE PROCEDURE Test_GetTempData -- Add the parameters for the stored procedure here AS BEGIN Select * from #temp_Table END CREATE TABLE #temp_Table( [CustomerID] nchar(5) , [CompanyName] nvarchar(40) ) insert into #temp_Table(CustomerID, CompanyName) select [CustomerID], [CompanyName] from customers EXEC [dbo].[Test_GetTempData] drop table #temp_Table
admin
Date:: Apr 17, 2009
Time:: 09:25
The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points. The Quomon Team
Date:: Apr 20, 2009
Time:: 06:08
The question has been closed. The Quomon Team
Question Answered
This question has been closed, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.
Answer this Question
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Forgot Your Password?
Enter your email address below and we will resend your login information to you.
Login Information Sent
Questions
whats the best food to eat during midnight?
How to identify the tiffany jewelry? www.tffanycheapmall.com.
Send an email alert to each user of the php application based on criteria
How I Increased My AdSense Earnings?
how to choose the lady dress ?
How can I fulfill the minimum requirement to make your computer support 3D?
You have 100 characters to use
Rank
Expert
Points
1.
10354
2.
6493
3.
5596
4.
4848
5.
3487
6.
2840
7.
2770
8.
2303
9.
1820
10.
917
Register today to share your knowledge with the community and be recognized and rewarded for your contributions.
Register Here
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
Language Options
English:
Español:
Sponsors
Questions and Answers Software