<?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; Twitter App</title>
	<atom:link href="http://www.youdidwhatwithtsql.com/tag/twitter-app/feed" rel="self" type="application/rss+xml" />
	<link>http://www.youdidwhatwithtsql.com</link>
	<description>making DBAs everywhere curse!</description>
	<lastBuildDate>Sat, 24 Jul 2010 16:26:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using TwitterCounter with Tweet-SQL</title>
		<link>http://www.youdidwhatwithtsql.com/using-twittercounter-with-tweet-sql/165</link>
		<comments>http://www.youdidwhatwithtsql.com/using-twittercounter-with-tweet-sql/165#comments</comments>
		<pubDate>Sat, 06 Jun 2009 15:10:46 +0000</pubDate>
		<dc:creator>Rhys</dc:creator>
				<category><![CDATA[Tweet-SQL]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Twitter API]]></category>
		<category><![CDATA[Twitter App]]></category>
		<category><![CDATA[TwitterCounter]]></category>

		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/using-twittercounter-with-tweet-sql/165</guid>
		<description><![CDATA[TwitterCounter is a service that provides Twitter user statistics. In their own words; “The TwitterCounter API allows you to retrieve everything TwitterCounter knows about a certain Twitter username.” TwitterCounter basically provides statistics on followers and predictions on growth. The next version of Tweet-SQL will include a procedure to work with this data. Here’s how you [...]<p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/using-twittercounter-with-tweet-sql/165">Using TwitterCounter with Tweet-SQL</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://twittercounter.com/" target="_blank">TwitterCounter</a> is a service that provides <a href="http://twitter.com" target="_blank">Twitter</a> user statistics. In their own words; <em>“The TwitterCounter API allows you to retrieve everything TwitterCounter knows about a certain Twitter username.” </em><a href="http://twittercounter.com" target="_blank">TwitterCounter</a> basically provides statistics on followers and predictions on growth. The next version of <a href="http://www.tweet-sql.com/" target="_blank">Tweet-SQL</a> will include a procedure to work with this data. Here’s how you use it;</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('p165code2'); return false;">View Code</a> TSQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1652"><td class="code" id="p165code2"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">DECLARE</span> @username <span style="color: #0000FF;">VARCHAR</span><span style="color: #808080;">&#40;</span><span style="color: #000;">30</span><span style="color: #808080;">&#41;</span>;
<span style="color: #008080;">-- Set Twitter username</span>
<span style="color: #0000FF;">SET</span> @username <span style="color: #808080;">=</span> <span style="color: #FF0000;">'rhyscampbell'</span>;
<span style="color: #008080;">-- Execute the procedure</span>
<span style="color: #0000FF;">EXEC</span> dbo.<span style="color: #202020;">tweet_util_twitterCounter</span> @username, null, null;</pre></td></tr></table></div>

<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/06/image8.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Tweet-SQL results from TwitterCounter" border="0" alt="Tweet-SQL results from TwitterCounter" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/06/image-thumb8.png" width="644" height="110" /></a> </p>
<p>Here’s the raw xml that is accessible by using OUTPUT parameters.</p>
<pre>&lt;twittercounter&gt;
  &lt;user_id&gt;297689&lt;/user_id&gt;
  &lt;user_name&gt;rhyscampbell&lt;/user_name&gt;
  &lt;followers_current&gt;255&lt;/followers_current&gt;
  &lt;date_updated&gt;2009-06-06&lt;/date_updated&gt;
  &lt;url&gt;http://www.youdidwhatwithtsql.com&lt;/url&gt;
  &lt;avatar&gt;70800065/n571986135_2362730_9166_normal.jpg&lt;/avatar&gt;
  &lt;follow_days&gt;253&lt;/follow_days&gt;
  &lt;started_followers&gt;18&lt;/started_followers&gt;
  &lt;growth_since&gt;237&lt;/growth_since&gt;
  &lt;average_growth&gt;1&lt;/average_growth&gt;
  &lt;tomorrow&gt;256&lt;/tomorrow&gt;
  &lt;next_month&gt;285&lt;/next_month&gt;
  &lt;followers_yesterday&gt;258&lt;/followers_yesterday&gt;
  &lt;rank&gt;90877&lt;/rank&gt;
  &lt;followers_2w_ago&gt;18&lt;/followers_2w_ago&gt;
  &lt;growth_since_2w&gt;237&lt;/growth_since_2w&gt;
  &lt;average_growth_2w&gt;17&lt;/average_growth_2w&gt;
  &lt;tomorrow_2w&gt;272&lt;/tomorrow_2w&gt;
  &lt;next_month_2w&gt;765&lt;/next_month_2w&gt;
  &lt;followersperdate&gt;
    &lt;date2009-05-11&gt;227&lt;/date2009-05-11&gt;
    &lt;date2009-05-12&gt;227&lt;/date2009-05-12&gt;
    &lt;date2009-05-15&gt;230&lt;/date2009-05-15&gt;
    &lt;date2009-05-17&gt;230&lt;/date2009-05-17&gt;
    &lt;date2009-05-20&gt;232&lt;/date2009-05-20&gt;
    &lt;date2009-05-22&gt;239&lt;/date2009-05-22&gt;
    &lt;date2009-05-24&gt;241&lt;/date2009-05-24&gt;
    &lt;date2009-05-26&gt;249&lt;/date2009-05-26&gt;
    &lt;date2009-05-29&gt;248&lt;/date2009-05-29&gt;
    &lt;date2009-05-31&gt;250&lt;/date2009-05-31&gt;
    &lt;date2009-06-02&gt;248&lt;/date2009-06-02&gt;
    &lt;date2009-06-04&gt;258&lt;/date2009-06-04&gt;
    &lt;date2009-06-06&gt;255&lt;/date2009-06-06&gt;
  &lt;/followersperdate&gt;
&lt;/twittercounter&gt;</pre>
<p><map name='google_ad_map_165_a45beff5d2e172f6'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/165?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_165_a45beff5d2e172f6' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=165&amp;url=http%3A%2F%2Fwww.youdidwhatwithtsql.com%2Fusing-twittercounter-with-tweet-sql%2F165' title="Using TwitterCounter with Tweet SQL" alt=" Using TwitterCounter with Tweet SQL" /></p><p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/using-twittercounter-with-tweet-sql/165">Using TwitterCounter with Tweet-SQL</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/using-twittercounter-with-tweet-sql/165/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shrinking Tweets with Tweet-SQL</title>
		<link>http://www.youdidwhatwithtsql.com/shrinking-tweets-with-tweet-sql/105</link>
		<comments>http://www.youdidwhatwithtsql.com/shrinking-tweets-with-tweet-sql/105#comments</comments>
		<pubDate>Tue, 19 May 2009 20:24:23 +0000</pubDate>
		<dc:creator>Rhys</dc:creator>
				<category><![CDATA[Tweet-SQL]]></category>
		<category><![CDATA[TweetShrink]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Twitter API]]></category>
		<category><![CDATA[Twitter App]]></category>

		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/shrinking-tweets-with-tweet-sql/105</guid>
		<description><![CDATA[To get your point across on Twitter you sometimes have to try and shorten your tweets. This can be a pain for anyone over 30 who doesn’t know txtspk. Thankfully some clever chap has come to the rescue with TweetShrink and I’ve integrated it into Tweet-SQL. Here’s how you use it; ?View Code TSQLDECLARE @shrunk [...]<p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/shrinking-tweets-with-tweet-sql/105">Shrinking Tweets with Tweet-SQL</a></p>
]]></description>
			<content:encoded><![CDATA[<p>To get your point across on <a href="http://twitter.com" target="_blank">Twitter</a> you sometimes have to try and shorten your tweets. This can be a pain for anyone over 30 who doesn’t know <a href="http://en.wikipedia.org/wiki/SMS_language" target="_blank">txtspk</a>. Thankfully some clever chap has come to the rescue with <a href="http://tweetshrink.com" target="_blank">TweetShrink</a> and I’ve integrated it into <a href="http://tweet-sql.com" target="_blank">Tweet-SQL</a>. Here’s how you use it;</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('p105code4'); return false;">View Code</a> TSQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1054"><td class="code" id="p105code4"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">DECLARE</span> @shrunk <span style="color: #0000FF;">VARCHAR</span><span style="color: #808080;">&#40;</span><span style="color: #000;">140</span><span style="color: #808080;">&#41;</span>,
		@shaved <span style="color: #0000FF;">INT</span>;
&nbsp;
<span style="color: #0000FF;">EXEC</span> dbo.<span style="color: #202020;">tweet_util_tweetShrink</span> <span style="color: #FF0000;">'For some strange reason I have developed a tendency to think every new version of Windows is more of a resource pig.'</span>, @shrunk <span style="color: #0000FF;">OUTPUT</span>, @shaved <span style="color: #0000FF;">OUTPUT</span>;
&nbsp;
<span style="color: #008080;">-- The shortened Tweet</span>
<span style="color: #0000FF;">SELECT</span> @shrunk <span style="color: #0000FF;">AS</span> shrunkTweet;
<span style="color: #008080;">-- How may characters have been shaved off?</span>
<span style="color: #0000FF;">SELECT</span> @shaved <span style="color: #0000FF;">AS</span> shaved;</pre></td></tr></table></div>

<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/05/image3.png"><img title="Using TweetShrink in Tweet-SQL" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="132" alt="Using TweetShrink in Tweet-SQL" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/05/image-thumb3.png" width="644" border="0" /></a> </p>
<p>A future version of <a href="http://www.tweet-sql.com" target="_blank">Tweet-SQL</a> will include this functionality along with a few more cool surprises.</p>
<p><map name='google_ad_map_105_a45beff5d2e172f6'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/105?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_105_a45beff5d2e172f6' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=105&amp;url=http%3A%2F%2Fwww.youdidwhatwithtsql.com%2Fshrinking-tweets-with-tweet-sql%2F105' title="Shrinking Tweets with Tweet SQL" alt=" Shrinking Tweets with Tweet SQL" /></p><p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/shrinking-tweets-with-tweet-sql/105">Shrinking Tweets with Tweet-SQL</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/shrinking-tweets-with-tweet-sql/105/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the Twitter Search API with Tweet-SQL</title>
		<link>http://www.youdidwhatwithtsql.com/using-the-twitter-search-api-with-tweet-sql/89</link>
		<comments>http://www.youdidwhatwithtsql.com/using-the-twitter-search-api-with-tweet-sql/89#comments</comments>
		<pubDate>Tue, 28 Apr 2009 19:05:09 +0000</pubDate>
		<dc:creator>Rhys</dc:creator>
				<category><![CDATA[Tweet-SQL]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[Twitter API]]></category>
		<category><![CDATA[Twitter App]]></category>

		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/using-the-twitter-search-api-with-tweet-sql/89</guid>
		<description><![CDATA[Using the new version of Tweet-SQL you can consume data from the Twitter Search API. The data in Twitter Search is constantly updated with new tweets so anything you grab out of the API is near real-time. To perform a query with Tweet-SQL run the following T-SQL; ?View Code TSQLEXEC dbo.tweet_src_search 'MC Frontalot', null, null; [...]<p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/using-the-twitter-search-api-with-tweet-sql/89">Using the Twitter Search API with Tweet-SQL</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Using the new version of <a href="http://www.tweet-sql.com/" target="_blank">Tweet-SQL</a> you can consume data from the <a href="http://search.twitter.com/api" target="_blank">Twitter Search API</a>. The data in <a href="http://search.twitter.com/" target="_blank">Twitter Search</a> is constantly updated with new tweets so anything you grab out of the API is near real-time. To perform a query with <a href="http://www.tweet-sql.com" target="_blank">Tweet-SQL</a> run the following <a href="http://en.wikipedia.org/wiki/T-SQL" target="_blank">T-SQL</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('p89code10'); return false;">View Code</a> TSQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8910"><td class="code" id="p89code10"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">EXEC</span> dbo.<span style="color: #202020;">tweet_src_search</span> <span style="color: #FF0000;">'MC Frontalot'</span>, null, null;</pre></td></tr></table></div>

<p>Data from <a href="http://twitter.com" target="_blank">Twitter</a> can be dealt with as an xml resultset, regular resultsets and with <a href="http://www.sqlservercentral.com/articles/Stored+Procedures/outputparameters/1200/" target="_blank">output parameters</a>.</p>
<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/04/image7.png"><img title="Twitter Search Results in Tweet-SQL" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="72" alt="Twitter Search Results in Tweet-SQL" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/04/image-thumb7.png" width="244" border="0" /></a> </p>
<p>The procedure supports the full range of optional parameters offered by the api. Here’s a few examples;</p>
<p><strong>lang</strong> &#8211; Restricts tweets to the given language, given by an <a href="http://en.wikipedia.org/wiki/ISO_639-1">ISO 639-1 code</a>.</p>
<p>Search for Tweets containing ‘<em>Paris’</em> in the French language only.</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('p89code11'); return false;">View Code</a> TSQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8911"><td class="code" id="p89code11"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">EXEC</span> dbo.<span style="color: #202020;">tweet_src_search</span> <span style="color: #FF0000;">'Paris'</span>, <span style="color: #FF0000;">'lang=fr'</span>, null;</pre></td></tr></table></div>

<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/04/image8.png"><img title="French tweets containing Paris" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="84" alt="French tweets containing Paris" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/04/image-thumb8.png" width="244" border="0" /></a> </p>
<p><strong>rpp</strong> &#8211; The number of tweets to return per page, up to a max of 100.</p>
<p>Search for Tweets mentioning “<em>Swine Flu” </em>and return up to 100 results.</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('p89code12'); return false;">View Code</a> TSQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8912"><td class="code" id="p89code12"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">EXEC</span> dbo.<span style="color: #202020;">tweet_src_search</span> <span style="color: #FF0000;">'swine flu'</span>, <span style="color: #FF0000;">'rpp=100'</span>, null;</pre></td></tr></table></div>

<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/04/image9.png"><img title="Request a maximum number of rows to return with Tweet-SQL" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="85" alt="Request a maximum number of rows to return with Tweet-SQL" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/04/image-thumb9.png" width="244" border="0" /></a> </p>
<p><strong>geocode</strong>&#160; &#8211; Returns tweets by users located within a given radius of the given latitude/longitude, where the user&#8217;s location is taken.</p>
<p>Search for my favourite <a href="http://www.thecastlefarringdon.co.uk/" target="_blank">pub in Farringdon</a> by users within 10 miles of <a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=EC1N+8FH&amp;sll=51.627395,-0.697632&amp;sspn=0.381921,1.227722&amp;ie=UTF8&amp;ll=51.521935,-0.106859&amp;spn=0.011963,0.038366&amp;t=h&amp;z=15&amp;iwloc=A" target="_blank">EC1N 8FH</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('p89code13'); return false;">View Code</a> TSQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8913"><td class="code" id="p89code13"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">DECLARE</span> @geocode <span style="color: #0000FF;">VARCHAR</span><span style="color: #808080;">&#40;</span><span style="color: #000;">100</span><span style="color: #808080;">&#41;</span> <span style="color: #808080;">=</span> <span style="color: #FF0000;">'geocode=51.521935,-0.106859,10mi'</span>;
<span style="color: #008080;">-- Need to url encode the geocode</span>
<span style="color: #0000FF;">SET</span> @geocode <span style="color: #808080;">=</span> dbo.<span style="color: #202020;">tweet_fnc_urlEncode</span><span style="color: #808080;">&#40;</span>@geocode<span style="color: #808080;">&#41;</span>;
&nbsp;
<span style="color: #0000FF;">EXEC</span> dbo.<span style="color: #202020;">tweet_src_search</span> <span style="color: #FF0000;">'Castle EC1'</span>, @geocode, null;</pre></td></tr></table></div>

<p><a href="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/04/image10.png"><img title="Tweet-SQL geocode search" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="40" alt="Tweet-SQL geocode search" src="http://www.youdidwhatwithtsql.com/wp-content/uploads/2009/04/image-thumb10.png" width="244" border="0" /></a></p>
<p>These, of course, can be chained together to procedure powerful <a href="http://search.twitter.com/" target="_blank">Twitter searches</a>. The example below will search for tweets containing ‘<em>Fabric’,<strong> </strong></em>within 1 mile of <a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=EC1N+8FH&amp;sll=51.627395,-0.697632&amp;sspn=0.381921,1.227722&amp;ie=UTF8&amp;ll=51.521935,-0.106859&amp;spn=0.011963,0.038366&amp;t=h&amp;z=15&amp;iwloc=A" target="_blank">EC1N 8FH</a>, returning up to 100 results.</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('p89code14'); return false;">View Code</a> TSQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8914"><td class="code" id="p89code14"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">DECLARE</span> @optional <span style="color: #0000FF;">VARCHAR</span><span style="color: #808080;">&#40;</span><span style="color: #000;">100</span><span style="color: #808080;">&#41;</span>,
		@geocode <span style="color: #0000FF;">VARCHAR</span><span style="color: #808080;">&#40;</span><span style="color: #000;">50</span><span style="color: #808080;">&#41;</span> <span style="color: #808080;">=</span> <span style="color: #FF0000;">'geocode=51.521935,-0.106859,1mi'</span>;
<span style="color: #008080;">-- Need to url encode the geocode</span>
<span style="color: #0000FF;">SET</span> @geocode <span style="color: #808080;">=</span> dbo.<span style="color: #202020;">tweet_fnc_urlEncode</span><span style="color: #808080;">&#40;</span>@geocode<span style="color: #808080;">&#41;</span>;
<span style="color: #008080;">-- Combine the rpp and geocode parameters in the optional variable</span>
<span style="color: #0000FF;">SET</span> @optional <span style="color: #808080;">=</span> <span style="color: #FF0000;">'rpp=100&amp;amp;'</span> <span style="color: #808080;">+</span> @geocode;
&nbsp;
<span style="color: #0000FF;">EXEC</span> dbo.<span style="color: #202020;">tweet_src_search</span> <span style="color: #FF0000;">'Fabric'</span>, @optional, null;</pre></td></tr></table></div>

<p>Using <a href="http://www.tweet-sql.com" target="_blank">Tweet-SQL</a> you could;</p>
<ul>
<li>Archive Tweets containing certain terms and perform analytics. </li>
<li>Monitor <a href="http://twitter.com" target="_blank">Twitter</a> for mentions of certain terms. </li>
<li>Auto-follow people mentioning specific subjects. </li>
</ul>
<p>Detailed examples to follow soon.</p>
<p><map name='google_ad_map_89_a45beff5d2e172f6'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/89?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_89_a45beff5d2e172f6' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=89&amp;url=http%3A%2F%2Fwww.youdidwhatwithtsql.com%2Fusing-the-twitter-search-api-with-tweet-sql%2F89' title="Using the Twitter Search API with Tweet SQL" alt=" Using the Twitter Search API with Tweet SQL" /></p><p>Post from: <a href="http://www.youdidwhatwithtsql.com">youdidwhatwithtsql.com</a><br/><br/><a href="http://www.youdidwhatwithtsql.com/using-the-twitter-search-api-with-tweet-sql/89">Using the Twitter Search API with Tweet-SQL</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/using-the-twitter-search-api-with-tweet-sql/89/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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('p45code18'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4518"><td class="code" id="p45code18"><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="Tweet-SQL showing Twitter Search API Results" 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('p45code19'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4519"><td class="code" id="p45code19"><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('p45code20'); return false;">View Code</a> T-SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4520"><td class="code" id="p45code20"><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="Shorten URLs with Tweet-SQL" 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="HTTP dates with Tweet-SQL" 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>
]]></content:encoded>
			<wfw:commentRss>http://www.youdidwhatwithtsql.com/tweet-sql-version-2-sneak-peek/45/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
