<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Michael Coles: Sergeant SQL : code, SQL</title><link>http://sqlblog.com/blogs/michael_coles/archive/tags/code/SQL/default.aspx</link><description>Tags: code, SQL</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Bit-Twiddling in SQL</title><link>http://sqlblog.com/blogs/michael_coles/archive/2010/04/04/bit-twiddling-in-sql.aspx</link><pubDate>Sun, 04 Apr 2010 03:40:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:24024</guid><dc:creator>Mike C</dc:creator><slash:comments>4</slash:comments><comments>http://sqlblog.com/blogs/michael_coles/comments/24024.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/michael_coles/commentrss.aspx?PostID=24024</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/michael_coles/rsscomments.aspx?PostID=24024</wfw:comment><description>Someone posted a question to the SQL Server forum the other day asking how to count runs of zero bits in an integer using SQL. Basically the poster wanted to know how to efficiently determine the longest contiguous string of zero-bits (known as a run...(&lt;a href="http://sqlblog.com/blogs/michael_coles/archive/2010/04/04/bit-twiddling-in-sql.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=24024" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/michael_coles/archive/tags/SQL/default.aspx">SQL</category><category domain="http://sqlblog.com/blogs/michael_coles/archive/tags/SQL+Server/default.aspx">SQL Server</category><category domain="http://sqlblog.com/blogs/michael_coles/archive/tags/t-sql/default.aspx">t-sql</category><category domain="http://sqlblog.com/blogs/michael_coles/archive/tags/SQL+2008/default.aspx">SQL 2008</category><category domain="http://sqlblog.com/blogs/michael_coles/archive/tags/set-based/default.aspx">set-based</category><category domain="http://sqlblog.com/blogs/michael_coles/archive/tags/exercises/default.aspx">exercises</category><category domain="http://sqlblog.com/blogs/michael_coles/archive/tags/code/default.aspx">code</category><category domain="http://sqlblog.com/blogs/michael_coles/archive/tags/bit+twiddling/default.aspx">bit twiddling</category></item></channel></rss>