Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I believe it can be done. However, F# core library is the sole property of Microsoft. This means you can't modify its code and recompile it to match and comply with SQLCLR SAFE. I suggest you add suggestion to Microsoft using Microsoft's connect website.</p> <p>Microsoft connect is at: <a href="http://connect.microsoft.com" rel="nofollow">http://connect.microsoft.com</a> (you have to register and have email account on live.com or hotmail.com before register).</p> <p>To manually add your .NET DLL and integrate it to SQL Server, you can do this:</p> <p>In this example, the DLL from your F# code has to be compiled first. I take this step from MSDN Library link: <a href="http://msdn.microsoft.com/en-us/library/ms254956(v=vs.80).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms254956(v=vs.80).aspx</a></p> <p>Just don't forget to add PERMISSION_SET = SAFE to the CREATE ASSEMBLY command.</p> <p>Here are the steps I quote from above link:</p> <blockquote> <p><strong>Loading and Running the "Hello World" Stored Procedure in SQL Server</strong> </p> <p>Once the sample procedure has successfully compiled, you can test it in SQL Server. To do this, open SQL Server Management Studio and create a new query, connecting to a suitable test database (for example, the AdventureWorks sample database). We will need to create the assembly so we can access the stored procedure. For this example, we will assume that you have created the helloworld.dll assembly in the C:\ directory. Add the following Transact-SQL statement to your query.</p> <pre><code>CREATE ASSEMBLY helloworld from 'c:\helloworld.dll' WITH PERMISSION_SET = SAFE </code></pre> <p>Once the assembly has been created, we can now access our HelloWorld method by using the create procedure statement. We will call our stored procedure "hello":</p> <pre><code>CREATE PROCEDURE hello AS EXTERNAL NAME helloworld.HelloWorldProc.HelloWorld </code></pre> <p>Once the procedure has been created, it can be run just like a normal stored procedure written in Transact-SQL. Execute the following command:</p> <pre><code>EXEC hello </code></pre> <p>This should result in the following output in the SQL Server Management Studio messages window.</p> <pre><code>Hello world! </code></pre> </blockquote> <p><strong>Edit</strong>: based on the commenter below, he's right about F# is now open source! You can modify and recompile it to suit your needs.</p> <p><strong>Edit:</strong> adding more detail guide on how to integrate the DLL to SQL Server CLR integration.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload