Hi
Each of the result sets has to be compatible with the columns in the table
that are being inserted into. You can not choose one or the other unless the
stored procedure itself has a flag that can be passed.
A workaround for sp_spaceused could be:
http://tinyurl.com/29uhp
or using the unsupported sp_msforeachtable
insert into myspace exec sp_msforeachtable "exec sp_spaceused '?'"
This may also be useful:
http://www.aspfaq.com/show.asp?id=2428
John
"Darko Jovisic" <dj******@fesb.hr> wrote in message
news:c9**********@bagan.srce.hr...
Hi!
Another silly question:
If a stored procedure returns multiple result sets, how do I choose the
one I want to insert into a table?
For example sp_spaceused returns two result sets if object name is
ommited. I only need the first result set. How do I do that?
Tnx!
Darko