<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Check URL Status from SQL Server</title>
	<atom:link href="http://www.pythian.com/news/5563/check-url-status-from-sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/5563/check-url-status-from-sql-server/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Sat, 20 Mar 2010 10:37:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mohammed Mawla</title>
		<link>http://www.pythian.com/news/5563/check-url-status-from-sql-server/#comment-388445</link>
		<dc:creator>Mohammed Mawla</dc:creator>
		<pubDate>Fri, 27 Nov 2009 10:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5563#comment-388445</guid>
		<description>One update
=============

To return the URL status as tabular data , w can use this code :

 using(SqlConnection connection = new SqlConnection(&quot;context connection=true&quot;)) 
                        {
                          connection.Open();
                          SqlCommand command = new SqlCommand(&quot;select &#039;&quot; + rsp.StatusCode.ToString().Trim()+ &quot;&#039;&quot;, connection);
                          SqlContext.Pipe.ExecuteAndSend(command);
                        }
                        
                    //SqlContext.Pipe.Send(rsp.StatusCode.ToString());

------------------------------------------

This should help in trapping the status ,  and examining it. A temp table / table variable can be used for that

HTH</description>
		<content:encoded><![CDATA[<p>One update<br />
=============</p>
<p>To return the URL status as tabular data , w can use this code :</p>
<p> using(SqlConnection connection = new SqlConnection(&#8221;context connection=true&#8221;))<br />
                        {<br />
                          connection.Open();<br />
                          SqlCommand command = new SqlCommand(&#8221;select &#8216;&#8221; + rsp.StatusCode.ToString().Trim()+ &#8220;&#8216;&#8221;, connection);<br />
                          SqlContext.Pipe.ExecuteAndSend(command);<br />
                        }</p>
<p>                    //SqlContext.Pipe.Send(rsp.StatusCode.ToString());</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>This should help in trapping the status ,  and examining it. A temp table / table variable can be used for that</p>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammed Mawla</title>
		<link>http://www.pythian.com/news/5563/check-url-status-from-sql-server/#comment-388435</link>
		<dc:creator>Mohammed Mawla</dc:creator>
		<pubDate>Fri, 27 Nov 2009 08:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5563#comment-388435</guid>
		<description>Thanks Adam.

That&#039;s indeed looks a neat Regx ; my c# skills isn&#039;t a top-notch yet :)

Regards</description>
		<content:encoded><![CDATA[<p>Thanks Adam.</p>
<p>That&#8217;s indeed looks a neat Regx ; my c# skills isn&#8217;t a top-notch yet :)</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Machanic</title>
		<link>http://www.pythian.com/news/5563/check-url-status-from-sql-server/#comment-388147</link>
		<dc:creator>Adam Machanic</dc:creator>
		<pubDate>Thu, 26 Nov 2009 02:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=5563#comment-388147</guid>
		<description>Hi Mohammed,

Nice post. One modification to make the CLR version a bit more elegant would be to do the URL &quot;well-formedness&quot; validation via a regular expression, rather than using String.Trim(). The one at this site looks promising:

http://snippets.dzone.com/posts/show/452</description>
		<content:encoded><![CDATA[<p>Hi Mohammed,</p>
<p>Nice post. One modification to make the CLR version a bit more elegant would be to do the URL &#8220;well-formedness&#8221; validation via a regular expression, rather than using String.Trim(). The one at this site looks promising:</p>
<p><a href="http://snippets.dzone.com/posts/show/452" rel="nofollow">http://snippets.dzone.com/posts/show/452</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
