Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Sun Foster
Aged Yak Warrior
515 Posts |
Posted - 2009-09-12 : 07:43:22
|
| I use temporary table to store data and then output to dataset in ASP.NET.Is it possible to make more than one output so that I can create more dataset based on output? For example, create table #temp (...)insert #temp select * from orderselect ID, order_date from #temp //(output 1)select ID, order_city, order_amount from #temp //(output 2) |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-09-12 : 09:04:22
|
Yes. If you do that in a stored procedure, you will get two resultsets back.And if you use .GetNextRecordset method or similar, you have access to both resultsets. N 56°04'39.26"E 12°55'05.63" |
 |
|
|
Sun Foster
Aged Yak Warrior
515 Posts |
Posted - 2009-09-12 : 14:41:24
|
| Can you tell me how to code? |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-09-14 : 02:22:59
|
| In .NET dataset it is something like table(0),table(1),...MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|