CLR Assembly C # dentro do SQL Server

possível criar um grande projeto em C # (muitas funçõesCrie o conjunto CLR para ele, então, No SQL Server EM UM PROC ARMAZENADO, chame uma função que esteja no assembly,

A tabela (que eu passaria para ASSEMBLY) é calculada em outro processo armazenado ...

Se sim, quais seriam as etapas?

Estou pensando em algo assim.

-- I have a stored proc that gets a table, let it be myStoredProcTable

--FIST ENABLE DATA ACCESS
EXEC sp_serveroption 'TheServerName', 'DATA ACCESS', TRUE

--main.sql calls yStoredProcTable.sql and the calls functionAssembly
SELECT  *
INTO    #tmpTable
FROM    OPENQUERY(SERVERNAME, 'EXEC test.dbo.myStoredProcTable 1')


-- pass the table to assembly
-- how would i pass the table to assembly code?, Is this POSSIBLE?
    EXEC functionAssembly #tmpTable

------------------------------------------edita

Segue@faester answer: - Como eu poderia usar XML no código, sugeri usar onumberTOstring coisa, mas eu acho queXML opção é a melhor aqui ...

Novamente, eu realmente faço isso, mesmo que não seja a melhor escolha ...

questionAnswers(3)

yourAnswerToTheQuestion