<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: SQL Server 2005: Creating Your First C# CLR UDF in 10 Easy Steps (One of Which Includes Partying)</title>
	<link>http://blog.netnerds.net/2007/02/mssql-creating-your-first-c-clr-udf-in-10-easy-steps-one-of-which-includes-partying/</link>
	<description>ls /usr/lolcat</description>
	<pubDate>Sun, 12 Oct 2008 10:47:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Troy Howard</title>
		<link>http://blog.netnerds.net/2007/02/mssql-creating-your-first-c-clr-udf-in-10-easy-steps-one-of-which-includes-partying/#comment-10367</link>
		<dc:creator>Troy Howard</dc:creator>
		<pubDate>Fri, 05 Sep 2008 22:14:34 +0000</pubDate>
		<guid>http://blog.netnerds.net/2007/02/mssql-creating-your-first-c-clr-udf-in-10-easy-steps-one-of-which-includes-partying/#comment-10367</guid>
		<description>Thanks so much for this example.. I found my way here after getting to the permissions exceptions, and this explained nicely how to fix that. I'm actually solving the exact same problem, so that we can track the client machine hostname in our ISA web proxy log.

One minor modification to this code would be to add .Trim() to the ipaddr parameter. I noticed a number of the ips failing to resolve when I first ran this on real data. That's because some of them had trailing spaces in the string. If you pass an untrimmed string to Dns.GetHostEntry, it will fail to resolve.

So just change:

string myIP = System.Net.Dns.GetHostEntry(ipAddress).HostName.ToString();

to 

string myIP = System.Net.Dns.GetHostEntry(ipAddress.Trim()).HostName.ToString();


and it all works peachy. 

Thanks,
Troy</description>
		<content:encoded><![CDATA[<p>Thanks so much for this example.. I found my way here after getting to the permissions exceptions, and this explained nicely how to fix that. I'm actually solving the exact same problem, so that we can track the client machine hostname in our ISA web proxy log.</p>
<p>One minor modification to this code would be to add .Trim() to the ipaddr parameter. I noticed a number of the ips failing to resolve when I first ran this on real data. That's because some of them had trailing spaces in the string. If you pass an untrimmed string to Dns.GetHostEntry, it will fail to resolve.</p>
<p>So just change:</p>
<p>string myIP = System.Net.Dns.GetHostEntry(ipAddress).HostName.ToString();</p>
<p>to </p>
<p>string myIP = System.Net.Dns.GetHostEntry(ipAddress.Trim()).HostName.ToString();</p>
<p>and it all works peachy. </p>
<p>Thanks,<br />
Troy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SAF</title>
		<link>http://blog.netnerds.net/2007/02/mssql-creating-your-first-c-clr-udf-in-10-easy-steps-one-of-which-includes-partying/#comment-10335</link>
		<dc:creator>SAF</dc:creator>
		<pubDate>Sun, 24 Aug 2008 12:51:34 +0000</pubDate>
		<guid>http://blog.netnerds.net/2007/02/mssql-creating-your-first-c-clr-udf-in-10-easy-steps-one-of-which-includes-partying/#comment-10335</guid>
		<description>Hi,
I did not get the prompt to enable CLR. Also I get the error "Error	1	Execution of .NET Framework code is disabled. Set "clr enabled" configuration option and restart the server."

Could you please help me?

Regards
Ansaf</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I did not get the prompt to enable CLR. Also I get the error "Error	1	Execution of .NET Framework code is disabled. Set "clr enabled" configuration option and restart the server."</p>
<p>Could you please help me?</p>
<p>Regards<br />
Ansaf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tracy Isbell</title>
		<link>http://blog.netnerds.net/2007/02/mssql-creating-your-first-c-clr-udf-in-10-easy-steps-one-of-which-includes-partying/#comment-10036</link>
		<dc:creator>Tracy Isbell</dc:creator>
		<pubDate>Thu, 03 Apr 2008 13:49:06 +0000</pubDate>
		<guid>http://blog.netnerds.net/2007/02/mssql-creating-your-first-c-clr-udf-in-10-easy-steps-one-of-which-includes-partying/#comment-10036</guid>
		<description>Very helpful information.  I searched for a long time and was having difficulty piecing it all together.  Thanks a bunch.</description>
		<content:encoded><![CDATA[<p>Very helpful information.  I searched for a long time and was having difficulty piecing it all together.  Thanks a bunch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Md.Amir Hossain</title>
		<link>http://blog.netnerds.net/2007/02/mssql-creating-your-first-c-clr-udf-in-10-easy-steps-one-of-which-includes-partying/#comment-1287</link>
		<dc:creator>Md.Amir Hossain</dc:creator>
		<pubDate>Fri, 25 Jan 2008 06:33:51 +0000</pubDate>
		<guid>http://blog.netnerds.net/2007/02/mssql-creating-your-first-c-clr-udf-in-10-easy-steps-one-of-which-includes-partying/#comment-1287</guid>
		<description>Thanks a lot for such a example. Its really a good example for understand the process of CLR integration. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for such a example. Its really a good example for understand the process of CLR integration. Thanks again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
