<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><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>byteMyCode: Snippets for MSSQL</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this tag.</description>
		<pubDate>Sat, 22 Nov 2008 19:12:29 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Cursor Action Without a Cursor</title>
	<link>http://www.bytemycode.com/snippets/snippet/603/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/603/comments/</comments>
	<pubDate>Wed, 28 Feb 2007 13:11:41 +0000</pubDate>
	<dc:creator>Idlemind</dc:creator>
	<category>MSSQL, mysql</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/603/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Feb. 28th, 2007  1:11 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/603/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/Idlemind/" title="Helper">Idlemind</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/MSSQL">MSSQL</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/mysql">mysql</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/603/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>When you need to perform an action on a single row of data, many people turn to cursors.  Cursors come with a lot of overhead in the database engine and can be confusing.  Here's a way to get the same results without the overhead in a much simplier way.</p>
		]]>
	</description>
</item><item>
	<title>Shrink Log Files of all databases</title>
	<link>http://www.bytemycode.com/snippets/snippet/427/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/427/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 02:23:42 +0000</pubDate>
	<dc:creator>hunter</dc:creator>
	<category>MSSQL</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/427/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  2:23 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/427/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/hunter/" title="Beginner">hunter</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/MSSQL">MSSQL</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/427/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>Shrink databases' log files to minimal size. Runs on every database on server, using undocumented <img src="http://www.bytemycode.com/img/wysiwyg/emo-cool.gif" /> procedure.</p>
		]]>
	</description>
</item><item>
	<title>MSSQL Return Identity after Insert</title>
	<link>http://www.bytemycode.com/snippets/snippet/417/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/417/comments/</comments>
	<pubDate>Thu, 05 Oct 2006 20:48:31 +0000</pubDate>
	<dc:creator>Thomas</dc:creator>
	<category>MSSQL</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/417/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Oct. 5th, 2006  8:48 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/417/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/Thomas/" title="Helper">Thomas</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/MSSQL">MSSQL</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/417/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>Often when inserting information in a database we need to know the value of the autonumber/identity field so that we can insert related data in another table. MSSQL Server provides a SCOPE_IDENTITY() function for just such a purpose (PHP/MySQL users have the mysql_insert_id() function -- lucky).<br /><br />*This is in the generic section because there is no MSSQL Server or Database section.</p>
		]]>
	</description>
</item>
	</channel>
</rss>