all groups > sql server programming > april 2006 >
You're in the

sql server programming

group:

SqlPipe output from CLR sproc



SqlPipe output from CLR sproc charles davis
4/20/2006 10:12:46 PM
sql server programming: How would I go about capturing the output of a stored procedure that is
being returned through a SqlPipe? I have to write a CLR sproc in c#, and I
need get a string value out of it in the middle of a t-sql script. The only
way that I can figure out how to get the string back out is using the
SqlPipe. Everything work hunky-dory, and the correct output is written to
the screen when im in Management Studio, but I really need to shove this
string into a variable in the t-sql script and I cant for the life of me
figure out how!

any help, insight, or direction towards information on this subject would
be greatly appreciated.

TIA
Charles
Re: SqlPipe output from CLR sproc Adam Machanic
4/21/2006 2:57:03 AM
Can you send the string back as an output parameter? There is no way to
capture a message (which is what SqlPipe.Send(string) sends) in T-SQL.


--
Adam Machanic
Pro SQL Server 2005, available now
http://www.apress.com/book/bookDisplay.html?bID=457
--


[quoted text, click to view]

Re: SqlPipe output from CLR sproc charles davis
4/21/2006 1:08:35 PM
Got it !! thanks :) i just got hung up trying to make the sqlPipe work,
output params work perfect.

-Charles

in article e5AeNDRZGHA.3684@TK2MSFTNGP05.phx.gbl, Adam Machanic at
amachanic@hotmail._removetoemail_.com wrote on 4/20/06 11:57 PM:

[quoted text, click to view]
AddThis Social Bookmark Button