Hi. Thank you for your expertise.
I am trying to find out how ot pass data in SQL Server 2008 table type into C# CLR stored procedure from SQL stored procedure.
I've found lots of references how to pass it out of CLR procedure to SQL procedure but none the other way.
My plan is: from SQL stored proc, fill table type variable with data, pass it into CLR proc, do some calculations and pass this calculated result out. I understand that I either need to pass it out as a resultset, or call another SQL proc and pass into it a table type variable content.
Please lead me to any example. Any tips are welcome.
thank you.
vladimir
Hi Vladimir,
TVPs are not supported as input to SQLCLR procs.
Cheers,
Bob Beauchemin
SQLskills
Hi. Thank you for your expertise.
I am trying to find out how ot pass data in SQL Server 2008 table type into C# CLR stored procedure from SQL stored procedure.
I've found lots of references how to pass it out of CLR procedure to SQL procedure but none the other way.
My plan is: from SQL stored proc, fill table type variable with data, pass it into CLR proc, do some calculations and pass this calculated result out. I understand that I either need to pass it out as a resultset, or call another SQL proc and pass into it a table type variable content.
Please lead me to any example. Any tips are welcome.
thank you.
vladimir
Farmer - 18 Nov 2008 14:05 GMT
Thank you, Bob!
Hi Vladimir,
TVPs are not supported as input to SQLCLR procs.
Cheers,
Bob Beauchemin
SQLskills
"Farmer" <someone@somewhere.com> wrote in message news:9DF9C255-AFB8-45D9-94F7-D7A67BB0FA76@microsoft.com...
Hi. Thank you for your expertise.
I am trying to find out how ot pass data in SQL Server 2008 table type into C# CLR stored procedure from SQL stored procedure.
I've found lots of references how to pass it out of CLR procedure to SQL procedure but none the other way.
My plan is: from SQL stored proc, fill table type variable with data, pass it into CLR proc, do some calculations and pass this calculated result out. I understand that I either need to pass it out as a resultset, or call another SQL proc and pass into it a table type variable content.
Please lead me to any example. Any tips are welcome.
thank you.
vladimir