<?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>Luigi Melisi &#187; SQL Server</title>
	<atom:link href="http://www.luigimelisi.com/category/microsoft/sql-server/feed" rel="self" type="application/rss+xml" />
	<link>http://www.luigimelisi.com</link>
	<description>Development Blog : C# Code Samples,.NET Tips and Tricks</description>
	<lastBuildDate>Thu, 03 Mar 2011 09:01:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Come usare i cursori in Microsoft SQL Server</title>
		<link>http://www.luigimelisi.com/tips-and-tricks/come-usare-i-cursori-in-microsoft-sql-server.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=come-usare-i-cursori-in-microsoft-sql-server</link>
		<comments>http://www.luigimelisi.com/tips-and-tricks/come-usare-i-cursori-in-microsoft-sql-server.html#comments</comments>
		<pubDate>Mon, 09 Nov 2009 09:20:20 +0000</pubDate>
		<dc:creator>Luigi Melisi</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Cursori]]></category>
		<category><![CDATA[Cursors]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.luigimelisi.com/come-usare-i-cursori-in-microsoft-sql-server/</guid>
		<description><![CDATA[Come usare i cursori in Microsoft SQL Server]]></description>
			<content:encoded><![CDATA[<p>Di seguito vi riporto un semplice esempio di utilizzo dei Cursori con <strong>Microsoft SQL Server </strong>: </p>
<pre class="brush: sql; title: ; notranslate">
DECLARE @id int
DECLARE @nome nvarchar(255)
/* query da eseguire */
DECLARE MyCursor CURSOR FOR
SELECT id, nome
FROM MyTable
WHERE trendabb != ''
OPEN MyCursor
/* recupera i valori e li mette nelle variabili @id, @nome */
FETCH NEXT FROM MyCursor INTO @id, @nome
WHILE @@FETCH_STATUS = 0
BEGIN
/* inizio istruzioni da eseguire */
SELECT @id, @nome
/* fine istruzioni da eseguire */
FETCH NEXT FROM MyCursor INTO @id, @nome
END
CLOSE MyCursor
DEALLOCATE MyCursor</pre>
<p><a href="http://www.youbuy.it/lastminute.aspx" rel="nofollow" target="_blank"><img class="aligncenter" title="YouBuy.it - Last Minute - Offerte Sottocosto" src="http://images.youbuy.it/adv/last.jpg" alt="last Come usare i cursori in Microsoft SQL Server" width="450" height="600" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luigimelisi.com/tips-and-tricks/come-usare-i-cursori-in-microsoft-sql-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

