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.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 sp with 2 result sets, but need only one

Author  Topic 

djorre
Yak Posting Veteran

94 Posts

Posted - 2009-06-27 : 14:23:06
Hi,

I use a stored procedure to get a return query, but because i use

EXEC master..xp_CMDShell
'copy c:\LabJackLog\logging3.csv c:\LabJackLog\loggingsql.csv'

inside this stored procedure, it gives me 2 return query's. namely the 'output - one file copied' result and the query i need.

reporting services only reades the first result set, which is useless to me. how can i make that this result set of xp_CMDShell does not appear?

greets djorre

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-06-27 : 18:04:41
xp_cmdshell {'command_string'} [, no_output]




No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -