﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / CLR Integration and Programming.  / sql assemblies in .net / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 21:34:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: sql assemblies in .net</title><link>http://www.sqlservercentral.com/Forums/Topic523988-386-1.aspx</link><description>[quote][b]Jonathan Kehayias (6/28/2008)[/b][hr]More thn anything else, UDT's and UDF's are easily used out side of SQL.  This is of great benefit for things like geocoding where the UDT is used as a typed object in the app as well.  SQL 2008 implements the spatial datatypes in this manner.  You can download the SDK online.[/quote]Thank you, that I didn't know...</description><pubDate>Sat, 28 Jun 2008 11:55:15 GMT</pubDate><dc:creator>Marios Philippopoulos</dc:creator></item><item><title>RE: sql assemblies in .net</title><link>http://www.sqlservercentral.com/Forums/Topic523988-386-1.aspx</link><description>More thn anything else, UDT's and UDF's are easily used out side of SQL.  This is of great benefit for things like geocoding where the UDT is used as a typed object in the app as well.  SQL 2008 implements the spatial datatypes in this manner.  You can download the SDK online.</description><pubDate>Sat, 28 Jun 2008 08:20:27 GMT</pubDate><dc:creator>Jonathan Kehayias</dc:creator></item><item><title>RE: sql assemblies in .net</title><link>http://www.sqlservercentral.com/Forums/Topic523988-386-1.aspx</link><description>For the purposes of this debate, what is the point of invoking SQLCLR code outside a SQL context?I'm wondering if this is even necessary.What are the possible scenarios for this? If the SQLCLR assembly is accessing environmental resources (O/S, registry, event logs etc.) why can't this be done from the .NET code without using the SQLCLR? If not, what is the assembly doing?Pls everybody, humor me on this, am I missing something?</description><pubDate>Sat, 28 Jun 2008 07:10:17 GMT</pubDate><dc:creator>Marios Philippopoulos</dc:creator></item><item><title>RE: sql assemblies in .net</title><link>http://www.sqlservercentral.com/Forums/Topic523988-386-1.aspx</link><description>If you want to use the Logic from a CLR Stored Procedure outside of SQL Server, you need to code it for such a purpose.  I generally abstract the logic portions that may be used outside of SQL Server into traditional methods and call out to those in SQL and in the application.  The SqlPipe and SqlContext don't exist outside of SQL Server, so you have to code a test for them in your CLR code so that it functions properly if it is being run outside of SQL Server.</description><pubDate>Fri, 27 Jun 2008 20:17:48 GMT</pubDate><dc:creator>Jonathan Kehayias</dc:creator></item><item><title>RE: sql assemblies in .net</title><link>http://www.sqlservercentral.com/Forums/Topic523988-386-1.aspx</link><description>how to use this assembly in .net then</description><pubDate>Thu, 26 Jun 2008 23:07:30 GMT</pubDate><dc:creator>bhakti-sonu</dc:creator></item><item><title>RE: sql assemblies in .net</title><link>http://www.sqlservercentral.com/Forums/Topic523988-386-1.aspx</link><description>Make a common library that you can call both from your SQLCLR wrapper and from VB.net.</description><pubDate>Thu, 26 Jun 2008 19:49:48 GMT</pubDate><dc:creator>RBarryYoung</dc:creator></item><item><title>RE: sql assemblies in .net</title><link>http://www.sqlservercentral.com/Forums/Topic523988-386-1.aspx</link><description>The purpose of a SQLCLR assembly is for it to be invoked from within SQL code.You don't need to call it from .NET code.What is your assembly doing?</description><pubDate>Thu, 26 Jun 2008 10:26:13 GMT</pubDate><dc:creator>Marios Philippopoulos</dc:creator></item><item><title>sql assemblies in .net</title><link>http://www.sqlservercentral.com/Forums/Topic523988-386-1.aspx</link><description>i have created an assembly in sql server. written stored procedures ,triggers and a function to it now tell me how can I use this assembly in VB.net to view the records or results.I tried it by using the same method as we follow for private assembly but it gives ---------------------------------Imports SqlServerProject2Dim o As StoredProcedures  StoredProcedures.PrintDate()----------------------------------------an error  occurs :-"The requested operation requires a SqlClr context, which is only available when running in the Sql Server process."  how to resolve this?</description><pubDate>Thu, 26 Jun 2008 04:17:16 GMT</pubDate><dc:creator>bhakti-sonu</dc:creator></item></channel></rss>