<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>youdidwhatwithtsql.com &#187; CLR</title>
	<atom:link href="http://www.youdidwhatwithtsql.com/tag/clr/feed" rel="self" type="application/rss+xml" />
	<link>http://www.youdidwhatwithtsql.com</link>
	<description>making DBAs everywhere curse!</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:21:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tweet-SQL Version 2 Sneak Peek</title>
		<link>http://www.youdidwhatwithtsql.com/tweet-sql-version-2-sneak-peek/45</link>
		<comments>http://www.youdidwhatwithtsql.com/tweet-sql-version-2-sneak-peek/45#comments</comments>
		<pubDate>Sat, 14 Mar 2009 14:14:52 +0000</pubDate>
		<dc:creator>Rhys</dc:creator>
				<category><![CDATA[Tweet-SQL]]></category>
		<category><![CDATA[CLR]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Twitter API]]></category>
		<category><![CDATA[Twitter App]]></category>

		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/tweet-sql-version-2-sneak-peek/45</guid>
		<description><![CDATA[Tweet-SQL is a Twitter Client for Microsoft SQL Server 2005 and above allowing you to interact with the Twitter API with standard T-SQL. The forthcoming version 2 of Tweet-SQL contains a host of new features and improvements. Here’s a sneak peek at what is coming in Tweet-SQL V2; New procedure allowing the use of the [...]<p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/tweet-sql-version-2-sneak-peek/45">Tweet-SQL Version 2 Sneak Peek</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tweet-sql.com" target="_blank">Tweet-SQL</a> is a Twitter Client for Microsoft SQL Server 2005 and above allowing you to interact with the <a href="apiwiki.twitter.com" target="_blank">Twitter API</a> with standard T-SQL. The forthcoming version 2 of <a href="http://www.tweet-sql.com" target="_blank">Tweet-SQL</a> contains a host of new features and improvements. Here’s a sneak peek at what is coming in <a href="http://www.tweet-sql.com" target="_blank">Tweet-SQL</a> V2;</p>
<ul>
<li>New procedure allowing the use of the <a href="apiwiki.twitter.com/Search+API+Documentatio" target="_blank">Twitter Search API</a>.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p45code4'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p454"><td class="code" id="p45code4"><pre class="t-sql" style="font-family:monospace;">DECLARE @query NVARCHAR(100);
SET @query = 'Tweet-SQL';
&nbsp;
EXEC dbo.tweet_src_search @query, null, null;</pre></td></tr></table></div>

</li>
</ul>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/03/image.png"><img title="Tweet-SQL showing Twitter Search API Results" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="197" alt="image thumb Tweet SQL Version 2 Sneak Peek" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/03/image-thumb.png" width="244" border="0" /></a>&#160;</p>
<ul>
<li>New procedures allowing profile modification. </li>
</ul>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p45code5'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p455"><td class="code" id="p45code5"><pre class="t-sql" style="font-family:monospace;">EXEC dbo.tweet_acc_update_profile @name, 
				  @email, 
				  @profile_url,
				  @location, 
				  @description,
				  null;
EXEC tweet_acc_update_profile_colors @profile_background_color,
				     @profile_text_color,
				     @profile_link_color,
				     @profile_sidebar_fill,
				     @profile_sidebar_border_color,
				     null;</pre></td></tr></table></div>

<ul>
<li>Four new procedures implementing the new <a href="http://apiwiki.twitter.com/REST+API+Documentation#SocialGraphMethods" target="_blank">Social Graph</a> API methods either returning data to the user or replicating the data to local tables. </li>
</ul>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p45code6'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p456"><td class="code" id="p45code6"><pre class="t-sql" style="font-family:monospace;">-- Follower ids for the authenticating user
EXEC dbo.tweet_sog_followers null, null;
-- Same as above but copies data to a local table
EXEC dbo.tweet_sog_followersTable null;
-- Friend ids for the authenticating user
EXEC dbo.tweet_sog_friends null, null;
-- Same as above but copies data to a local table
EXEC dbo.tweet_sog_friendsTable;</pre></td></tr></table></div>

<ul>
<li>New procedure to shorten urls with <a href="http://tinyurl.com" target="_blank">TinyURL</a>. </li>
</ul>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/03/image1.png"><img title="Shorten URLs with Tweet-SQL" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="74" alt="image thumb1 Tweet SQL Version 2 Sneak Peek" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/03/image-thumb1.png" width="244" border="0" /></a> </p>
<ul>
<li>New function tweet_fnc_httpformat allowing easier work with datetime values. </li>
</ul>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/03/image2.png"><img title="HTTP dates with Tweet-SQL" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="71" alt="image thumb2 Tweet SQL Version 2 Sneak Peek" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/03/image-thumb2.png" width="244" border="0" /></a></p>
<p>There’s even more to come in version 2 that will compliment the <a href="http://www.tweet-sql.com/features.php" target="_blank">existing features</a> of Tweet-SQL. There’s a feature freeze in place at the moment but what would you like to see in future versions of <a href="http://www.tweet-sql.com" target="_blank">Tweet-SQL</a>?</p>
<p><map name='google_ad_map_45_a45beff5d2e172f6'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/45?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_45_a45beff5d2e172f6' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=45&amp;url=http%3A%2F%2Fwww.youdidwhatwithtsql.com%2Ftweet-sql-version-2-sneak-peek%2F45' title="Tweet SQL Version 2 Sneak Peek" alt=" Tweet SQL Version 2 Sneak Peek" /></p><p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/tweet-sql-version-2-sneak-peek/45">Tweet-SQL Version 2 Sneak Peek</a></p>
<div class="none"><div class="g-plusone" data-href="http://www.youdidwhatwithtsql.com/tweet-sql-version-2-sneak-peek/45" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/tweet-sql-version-2-sneak-peek/45/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ping-SQL Sneak Peek</title>
		<link>http://www.youdidwhatwithtsql.com/ping-sql-sneak-peek/38</link>
		<comments>http://www.youdidwhatwithtsql.com/ping-sql-sneak-peek/38#comments</comments>
		<pubDate>Fri, 13 Mar 2009 19:16:20 +0000</pubDate>
		<dc:creator>Rhys</dc:creator>
				<category><![CDATA[Ping-SQL]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[CLR]]></category>
		<category><![CDATA[ping.fm]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql server 2005]]></category>

		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/ping-sql-sneak-peek/38</guid>
		<description><![CDATA[Ping-SQL allows you to play with the Ping.fm&#160;API with standard T-SQL in Microsoft SQL Server 2005 and above. Ping-SQL includes procedures to programmatically adjust configuration, replicate data to local tables and, of course, interact directly with the ping.fm API. Here’s a quick summary of the procedures currently in the suite… Procedure Classification Comment ping_cfg_debug Configuration [...]<p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/ping-sql-sneak-peek/38">Ping-SQL Sneak Peek</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://ping-sql.com/" target="_blank">Ping-SQL</a> allows you to play with the <a href="http://ping.fm" target="_blank">Ping.fm</a>&#160;<a href="http://groups.google.com/group/pingfm-developers/web/api-documentation" target="_blank">API</a> with standard T-SQL in Microsoft SQL Server 2005 and above. <a href="http://www.ping-sql.com" target="_blank">Ping-SQL</a> includes procedures to programmatically adjust configuration, replicate data to local tables and, of course, interact directly with the ping.fm API. Here’s a quick summary of the procedures currently in the suite…</p>
<table cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr>
<td valign="top" width="200">
<p><b>Procedure</b></p>
</td>
<td valign="top" width="119">
<p><b>Classification</b></p>
</td>
<td valign="top" width="297">
<p><b>Comment</b></p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_cfg_debug</p>
</td>
<td valign="top" width="119">
<p>Configuration</p>
</td>
<td valign="top" width="297">
<p>Allows you to avoid posting test data to the ping.fm API when set to On / 1.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_cfg_license_key</p>
</td>
<td valign="top" width="119">
<p>Configuration</p>
</td>
<td valign="top" width="297">
<p>Change the Ping-SQL License key.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_cfg_no_rsp</p>
</td>
<td valign="top" width="119">
<p>Configuration</p>
</td>
<td valign="top" width="297">
<p>Removes any data table called “rsp” from resultsets.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_cfg_no_services</p>
</td>
<td valign="top" width="119">
<p>Configuration</p>
</td>
<td valign="top" width="297">
<p>Removes any data tables called “services” from resultsets.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_cfg_resultset_send</p>
</td>
<td valign="top" width="119">
<p>Configuration</p>
</td>
<td valign="top" width="297">
<p>Changes the way resultsets are presented.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_cfg_sys_debug</p>
</td>
<td valign="top" width="119">
<p>Configuration</p>
</td>
<td valign="top" width="297">
<p>Enables Ping-SQL application debugging.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_cfg_user_key</p>
</td>
<td valign="top" width="119">
<p>Configuration</p>
</td>
<td valign="top" width="297">
<p>Allows the user key used to authenticate with ping.fm to be changed.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_sys_systemServicesTable</p>
</td>
<td valign="top" width="119">
<p>Data Replication</p>
</td>
<td valign="top" width="297">
<p>Creates a local table containing the data returned from the system.services API method. This table is called ping_systemServicesTable. Any existing table with this name is dropped first.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_sys_userServicesTable</p>
</td>
<td valign="top" width="119">
<p>Data Replication</p>
</td>
<td valign="top" width="297">
<p>Creates a local table containing the data returned from the user.services API method. The table is called ping_userServicesTable. Any existing table with this name is dropped first.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_systemServices</p>
</td>
<td valign="top" width="119">
<p>Ping.fm API</p>
</td>
<td valign="top" width="297">
<p>Retuns a complete list of services supported by ping.fm.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_userKey</p>
</td>
<td valign="top" width="119">
<p>Ping.fm API</p>
</td>
<td valign="top" width="297">&#160;</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_userLatest</p>
</td>
<td valign="top" width="119">
<p>Ping.fm API</p>
</td>
<td valign="top" width="297">
<p>Returns the last 25 messages a user has posted through Ping.fm.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_userPost</p>
</td>
<td valign="top" width="119">
<p>Ping.fm API</p>
</td>
<td valign="top" width="297">
<p>Post a message to the users ping.fm services.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_userServices</p>
</td>
<td valign="top" width="119">
<p>Ping.fm API</p>
</td>
<td valign="top" width="297">
<p>Returns a list of services the user has configured in their ping.fm account.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_userTriggers</p>
</td>
<td valign="top" width="119">
<p>Ping.fm API</p>
</td>
<td valign="top" width="297">
<p>Returns a list of custom triggers.</p>
</td>
</tr>
<tr>
<td valign="top" width="200">
<p>ping_userValidate</p>
</td>
<td valign="top" width="119">
<p>Ping.fm API</p>
</td>
<td valign="top" width="297">
<p>Validates the configured user key.</p>
</td>
</tr>
</tbody>
</table>
<p>So what can you do with <a href="http://www.ping-sql.com" target="_blank">Ping-SQL</a>?</p>
<p><strong>Update your Facebook status with Ping-SQL</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p38code11'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3811"><td class="code" id="p38code11"><pre class="t-sql" style="font-family:monospace;">-- Update your facebook status with Ping-SQL
DECLARE @status VARCHAR(140),
		@optional VARCHAR(100);
&nbsp;
-- Status message to post
SET @status = 'is posting my status to facebook';
-- Specify the service to post to here
SET @optional = 'service=facebook'
&nbsp;
EXEC dbo.ping_userPost null, @status, @optional, null, null;</pre></td></tr></table></div>

<p><strong>Post to Twitter with Ping-SQL</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p38code12'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3812"><td class="code" id="p38code12"><pre class="t-sql" style="font-family:monospace;">-- Twitter microblogging with Ping-SQL
DECLARE @microblog VARCHAR(140),
		@optional VARCHAR(100);
&nbsp;
-- Status message to post
SET @microblog = 'Drinking Coffee at home';
-- Specify the service to post to here
SET @optional = 'service=twitter'
&nbsp;
EXEC dbo.ping_userPost null, @microblog, @optional, null, null;</pre></td></tr></table></div>

<p><strong>Post to Blogger with Ping-SQL</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p38code13'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3813"><td class="code" id="p38code13"><pre class="t-sql" style="font-family:monospace;">-- Post to Blogger with Ping-SQL
DECLARE @title VARCHAR(100),
		@blog VARCHAR(MAX),
		@optional VARCHAR(100);
&nbsp;
-- Set the title of your blog
SET @title= 'Test Blog Title';
-- The blog text
SET @blog = 'Lorem ipsum dolor sit amet, consectetur 
adipisicing elit, sed do eiusmod tempor incididunt ut 
labore et dolore magna aliqua. Ut enim ad minim veniam, 
quis nostrud exercitation ullamco laboris nisi ut aliquip 
ex ea commodo consequat. Duis aute irure dolor in 
reprehenderit in voluptate velit esse cillum dolore eu 
fugiat nulla pariatur. Excepteur sint occaecat cupidatat 
non proident, sunt in culpa qui officia deserunt mollit 
anim id est laborum.';
&nbsp;
-- Specify the service to post to here
-- and set the title tag
SET @optional = 'service=blogger&amp;amp;title=' + @title;
&nbsp;
-- Important @post_method must be set to blog!
EXEC dbo.ping_userPost 'blog', @blog, @optional, null, null;</pre></td></tr></table></div>

<p><strong>Upload Photos to Flickr with Ping-SQL</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p38code14'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3814"><td class="code" id="p38code14"><pre class="t-sql" style="font-family:monospace;">-- Upload a photo to Flickr!
DECLARE @title VARCHAR(140),
		@optional VARCHAR(100),
		@media_path VARCHAR(100);
&nbsp;
-- Title of the Photo
SET @title = 'Pink Floyd Album Covers';
-- Specify the service to post to here
SET @optional = 'service=flickr';
-- Set the image path 
SET @media_path = 'C:\Users\Rhys\Pictures\pink_floyd_001.jpg';
&nbsp;
EXEC dbo.ping_userPost null, @title, @optional, @media_path, null;</pre></td></tr></table></div>

<p><a href="http://www.ping-sql.com" target="_blank">Ping-SQL</a> is also capable of calling <a href="http://ping.fm/triggers/" target="_blank">triggers</a> that you have setup on your <a href="http://ping.fm" target="_blank">ping.fm</a> account. In fact <a href="http://www.ping-sql.com" target="_blank">Ping-SQL</a> should be capable of calling any of the services supported by ping.fm. Write T-SQL to play with Bebo, Blogger, BrightKite, Facebook, FriendFeed, MySpace, Plurk, Twitter, WordPress.com, Yahoo 360, Yammer and many more.</p>
<p><map name='google_ad_map_38_a45beff5d2e172f6'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/38?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_38_a45beff5d2e172f6' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=38&amp;url=http%3A%2F%2Fwww.youdidwhatwithtsql.com%2Fping-sql-sneak-peek%2F38' title="Ping SQL Sneak Peek" alt=" Ping SQL Sneak Peek" /></p><p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/ping-sql-sneak-peek/38">Ping-SQL Sneak Peek</a></p>
<div class="none"><div class="g-plusone" data-href="http://www.youdidwhatwithtsql.com/ping-sql-sneak-peek/38" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/ping-sql-sneak-peek/38/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

