<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title></title>
<description></description>
<link>http://blogs.dotnethell.it/suxstellino/</link>
<generator>HyperBlogs Professional v.2.0</generator>
<item>
<title>SQL Server Feature Limitations (Windows Azure SQL Database)</title>
<link>http://blogs.dotnethell.it/suxstellino/Post_19235.aspx</link>
<pubDate>Wed, 29 May 2013 13:25:32 +0100</pubDate>
<source url="http://blogs.dotnethell.it/suxstellino/rss.aspx">Alessandro Alpi</source>
<description>&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;Ho appena ricevuto una richiesta riguardante la comparazione delle feature disponibili tra SQL Server e SQL Azure Database.&lt;/font&gt;&lt;div style=&quot;font-family: 'Trebuchet MS'; font-size: 10pt;&quot;&gt;Ho deciso di condividere il link su MSDN che descrive e riassume le differenze tra i due:&lt;/div&gt;&lt;div style=&quot;font-family: 'Trebuchet MS'; font-size: 10pt;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;font-family: 'Trebuchet MS'; font-size: 10pt;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ff394115.aspx&quot; style=&quot;font-size: small;&quot;&gt;SQL Server Feature Limitations (Windows Azure SQL Database)&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;e&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/windowsazure/jj879332.aspx&quot;&gt;Windows Azure SQL Database and SQL Server -- Performance and Scalability Compared and Contrasted&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: 13px;&quot;&gt;e consiglio comunque di dare una letta&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/windowsazure/ee336279.aspx&quot; style=&quot;font-family: 'Trebuchet MS'; font-size: 13px;&quot;&gt;qui&lt;/a&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: 13px;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: 13px;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: 13px;&quot;&gt;Stay Tuned!&amp;nbsp;&lt;/span&gt;&lt;img src=&quot;http://blogs.dotnethell.it/icons/ThumbUp2.gif&quot;&gt;&lt;/div&gt;</description>
<dc:creator>Alessandro Alpi</dc:creator>
<slash:comments>0</slash:comments>
<comments>http://blogs.dotnethell.it/suxstellino/ReadComment_19235.aspx</comments>
<category>SQL Azure</category>
</item>
<item>
<title>Deploy one shot da SQL Server on premise a SQL Azure database</title>
<link>http://blogs.dotnethell.it/suxstellino/Post_19230.aspx</link>
<pubDate>Tue, 21 May 2013 12:46:43 +0100</pubDate>
<source url="http://blogs.dotnethell.it/suxstellino/rss.aspx">Alessandro Alpi</source>
<description>&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;Effettuare una migrazione da SQL Server a &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/windowsazure/ee336279.aspx&quot;&gt;SQL Azure Database&lt;/a&gt; &#232; piuttosto semplice.&lt;/span&gt;&lt;div&gt;&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;div&gt;&lt;div style=&quot;font-family: 'Trebuchet MS'; font-size: 10pt;&quot;&gt;Ci sono vari metodi per farlo, e la maggior parte sono indicati &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/windowsazure/ee730904.aspx&quot;&gt;qui&lt;/a&gt;.&lt;/div&gt;&lt;div style=&quot;font-family: 'Trebuchet MS'; font-size: 10pt;&quot;&gt;Come indicato nel link &#232; possibile:&lt;/div&gt;&lt;div style=&quot;font-family: 'Trebuchet MS'; font-size: 10pt;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;- Migrare utilizzando uno script del database esistente (opportunamente corretto in base a quanto SQL Azure Database supporta)&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;- Migrare con il &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/bb902854(v=SQL.110).aspx&quot;&gt;Microsoft Sync Framework 2.1&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;- Migrare con il Data-tier Application Export and Import&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;- Migrare verso SQL Database con &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms140052.aspx&quot;&gt;Integration Services&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;Oltre ad essi &#232; possibile anche fare un vero e proprio deploy, sempre tramite l'ausilio di semplici strumenti di Management Studio.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;Andiamo a vedere come farlo con l'apposito wizard.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;&lt;b&gt;Migrare con Deploy wizard&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;Tramite SQL Server Management Studio, &#232; possibile migrare il nostro database on premise verso un nuovo SQL Azure Database con pochi semplici click, utilizzando il wizard di deploy:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;http://blogs.dotnethell.it/filestore/10855_deploy_1.png&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;Con il wizard proposto, connettersi all'istanza su &lt;a href=&quot;http://www.windowsazure.com/it-it/&quot;&gt;Windows Azure&lt;/a&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;http://blogs.dotnethell.it/filestore/10856_deploy_2.png&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;Da notare la possibilit&#224; di ridefinire il nome, l'edizione e l'occupazione del nuovo database ed il path per il file temporaneo che viene creato, con estensione .bacpac (leggere &lt;a href=&quot;http://blogs.dotnethell.it/suxstellino/Creare-un-backup-di-un-Azure-SQL-Database-con-SQL-Server-Management-Studio__19049.aspx&quot;&gt;questo mio post&lt;/a&gt; per ulteriori dettagli).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;Una volta impostata la connessione, procedere con il deploy ed attendere il resoconto finale, nulla di pi&#249; semplice:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;http://blogs.dotnethell.it/filestore/10857_deploy_3.PNG&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;L'unica tabella esportata &#232; la dbo.Foo, ovvero l'unica tabella creata nel database Utilities che ho in questo esempio.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;L'operazione, consente di effettuare un deploy one shot. Ci&#242; significa che rieseguendola ancora con lo stesso database di destinazione, riceverete un errore come il seguente:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;Trebuchet MS&quot; size=&quot;2&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;http://blogs.dotnethell.it/filestore/10858_deploy_4.png&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;Quindi non fate l'errore di considerare questo deploy come uno strumento di continuous integration.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;Si tratta solamente di un deploy effettuato una tantum, che prende un SQL Server on premise e lo &quot;converte&quot; in un SQL Azure database.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: 'Trebuchet MS'; font-size: small;&quot;&gt;Stay Tuned!&amp;nbsp;&lt;/span&gt;&lt;img src=&quot;http://blogs.dotnethell.it/icons/ThumbUp2.gif&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
<dc:creator>Alessandro Alpi</dc:creator>
<slash:comments>0</slash:comments>
<comments>http://blogs.dotnethell.it/suxstellino/ReadComment_19230.aspx</comments>
<category>SQL Azure</category>
</item>
<item>
<title>Conflitto tra ALTER SCHEMA e il campo definition su sys.sql_modules</title>
<link>http://blogs.dotnethell.it/suxstellino/Post_19190.aspx</link>
<pubDate>Tue, 07 May 2013 11:12:46 +0100</pubDate>
<source url="http://blogs.dotnethell.it/suxstellino/rss.aspx">Alessandro Alpi</source>
<description>Quest'oggi ho avuto a che fare con un'istruzione piuttosto comoda e con un comportamento un po' indesiderato legato ad essa; si tratta di&amp;nbsp;&lt;span style=&quot;font-size: 10pt;&quot;&gt;un DDL,&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://technet.microsoft.com/it-it/library/ms173423.aspx&quot; style=&quot;font-size: 10pt;&quot;&gt;ALTER SCHEMA&lt;/a&gt;.&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Il tutto cercando di gestire una stored procedure. Stiamo parlando di SQL Server 2012 ma anche di SQL Azure Database. Il comportamento &#232; presente in entrambe le piattaforme.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;La definizione di una procedura &#232; salvata all'interno di una tabella del catalog ed &#232; disponibile accedendo dalla vista&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/it-it/library/ms175081.aspx&quot;&gt;sys.sql_modules&lt;/a&gt;&amp;nbsp;(campo definition).&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Eseguendo l'alter schema, la definition non sembra essere aggiornata.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Ma vediamo uno script, per capire meglio il comportamento non desiderato, creiamo gli oggetti:&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;USE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;tempdb;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: rgb(46, 117, 182); font-family: 'Courier New'; font-size: 9.5pt;&quot;&gt;GO&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: rgb(84, 130, 53); font-family: 'Courier New'; font-size: 9.5pt;&quot;&gt;-- creates a new schema&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;CREATE SCHEMA&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;Foo&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;;&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: rgb(84, 130, 53); font-family: 'Courier New'; font-size: 9.5pt;&quot;&gt;-- creates a new table&amp;nbsp; under Foo schema&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;CREATE TABLE&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;Foo.Data&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;(&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;IDFoo&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(46, 117, 182);&quot;&gt;int&amp;nbsp;&lt;/span&gt;NOT NULL&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;, FooDescription&amp;nbsp;&lt;span style=&quot;color: rgb(46, 117, 182);&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;NOT NULL&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;,&amp;nbsp;&lt;span style=&quot;color: rgb(46, 117, 182);&quot;&gt;CONSTRAINT&amp;nbsp;&lt;/span&gt;PK_FooData&amp;nbsp;&lt;span style=&quot;color: rgb(46, 117, 182);&quot;&gt;PRIMARY KEY CLUSTERED&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(19, 217, 163);&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;(&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDFoo&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;&amp;nbsp; )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;GO&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: white; font-family: 'Courier New'; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(84, 130, 53);&quot;&gt;-- creates stored procedure&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;CREATE PROCEDURE&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;Foo.proc_Foo_GetData&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;@IDFoo&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(46, 117, 182);&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;BEGIN&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;&amp;nbsp; IDFoo = @IDFoo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , FooDescription&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;Foo.Data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;IDFoo = @IDFoo;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: silver;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;GO&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;A questo punto andiamo a vedere la definizione della stored procedure appena creata:&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(84, 130, 53);&quot;&gt;-- gets the sp definition&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;&amp;nbsp; SpName =&amp;nbsp;&lt;span style=&quot;color: rgb(250, 145, 67);&quot;&gt;'Foo.proc_Foo_GetData'&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;, [definition]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: lime;&quot;&gt;sys&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: silver;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: lime;&quot;&gt;sql_modules&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(225, 119, 177);&quot;&gt;object_id&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;IN (&lt;b&gt;&lt;span style=&quot;color: rgb(225, 119, 177);&quot;&gt;OBJECT_ID&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: silver;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(250, 145, 67);&quot;&gt;'Foo.proc_Foo_GetData'&lt;/span&gt;));&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;GO&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;e il risultato, corretto, &#232;:&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;img src=&quot;http://blogs.dotnethell.it/filestore/10821_sp1.PNG&quot;&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Andiamo ora a creare un nuovo schema, ed effettuiamo il trasferimento:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(84, 130, 53);&quot;&gt;-- new schema&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;CREATE SCHEMA&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;Valid;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;GO&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: rgb(84, 130, 53); font-family: 'Courier New'; font-size: 9.5pt;&quot;&gt;-- transfer stored procedure&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;ALTER SCHEMA&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;Valid&amp;nbsp;&lt;span style=&quot;color: rgb(46, 117, 182);&quot;&gt;TRANSFER&amp;nbsp;&lt;/span&gt;Foo.proc_Foo_GetData;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;GO&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;br&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;Ricontrollando la definizione, ottengo per&#242; un risultato che non mi aspettavo:&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(84, 130, 53);&quot;&gt;-- gets the sp definition again&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;SpName&amp;nbsp;&lt;span style=&quot;color: silver;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(250, 145, 67);&quot;&gt;'Valid.proc_Foo_GetData'&lt;/span&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;, [definition]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(84, 130, 53);&quot;&gt;sys.sql_modules&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(225, 119, 177);&quot;&gt;object_id&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New';&quot;&gt;IN (&lt;b&gt;&lt;span style=&quot;color: rgb(225, 119, 177);&quot;&gt;OBJECT_ID&lt;/span&gt;&lt;/b&gt;(&lt;span style=&quot;color: rgb(250, 145, 67);&quot;&gt;'Valid.proc_Foo_GetData'&lt;/span&gt;));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: rgb(46, 117, 182);&quot;&gt;GO&lt;/span&gt;&lt;span style=&quot;font-size: 9.5pt; font-family: 'Courier New'; color: white;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;risultato:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;http://blogs.dotnethell.it/filestore/10822_sp2.PNG&quot;&gt;&lt;/div&gt;&lt;div&gt;come si pu&#242; notare lo schema dentro alla definizione &#232; ancora quello vecchio..&lt;/div&gt;&lt;div&gt;Sto lavorando sulla seguente versione di SQL Server 2012:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;i&gt;Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64)&amp;nbsp;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Dec 28 2012 20:23:12&amp;nbsp;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Copyright (c) Microsoft Corporation&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Developer Edition (64-bit) on Windows NT 6.2 &amp;lt;X64&amp;gt; (Build 9200: ) (Hypervisor)&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Ho fatto caso a questo comportamento, perch&#232; utilizzando il&amp;nbsp;&lt;a href=&quot;http://www.red-gate.com/products/sql-development/sql-search/&quot;&gt;SQL Search di red-gate&lt;/a&gt;, dopo un'alter schema mi sono trovato oggetti nella lista di ricerca, mentre essi erano stati spostati prima.&lt;/div&gt;&lt;div&gt;E l'unico modo per far digerire la modifica &#232; lanciare l'&lt;a href=&quot;http://msdn.microsoft.com/it-it/library/ms189762.aspx&quot;&gt;ALTER PROCEDURE&lt;/a&gt;. Dopo la modifica della definizione, ovviamente, il tutto si sincronizza.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Lo script completo&amp;nbsp;&lt;a href=&quot;http://www.alessandroalpi.net/files/ALTERSCHEMA.rar&quot;&gt;qui&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Su connect, &lt;a href=&quot;https://connect.microsoft.com/SQLServer/feedback/details/398203/sp-rename-doesnt-change-the-text-of-udfs-or-procs-sp-helptext-then-returns-a-script-with-the-old-name&quot;&gt;qualcosa di simile&lt;/a&gt;, chiuso come Won't fix..&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Avete mai fatto caso a questo problema?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Stay tuned!&amp;nbsp;&lt;img src=&quot;http://blogs.dotnethell.it/icons/ThumbUp2.gif&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</description>
<dc:creator>Alessandro Alpi</dc:creator>
<slash:comments>0</slash:comments>
<comments>http://blogs.dotnethell.it/suxstellino/ReadComment_19190.aspx</comments>
<category>SQL Server 2012</category>
</item>
<item>
<title>Filtered index e designer, errore scomparso su SQL Server 2012</title>
<link>http://blogs.dotnethell.it/suxstellino/Post_19169.aspx</link>
<pubDate>Wed, 01 May 2013 17:07:43 +0100</pubDate>
<source url="http://blogs.dotnethell.it/suxstellino/rss.aspx">Alessandro Alpi</source>
<description>Vi ricordate &lt;a href=&quot;http://blogs.dotnethell.it/suxstellino/SQL-Server-2008-Management-Studio-Filtered-index-perso-in-generazione-script__17486.aspx&quot;&gt;questo errore&lt;/a&gt; che indicai tanto tempo fa per la versione di SQL Server 2008?&lt;div&gt;Ebbene, provando per caso oggi con il mio SQL Server 2012, ho notato che la fix &#232; stata fatta.&lt;/div&gt;&lt;div&gt;Magari qualcuno di voi che ha 2008 R2 pu&#242; confermarmi che tutto gira bene anche per quella versione&amp;nbsp;&lt;img src=&quot;http://blogs.dotnethell.it/icons/regular_smile.gif&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Stay Tuned!&amp;nbsp;&lt;img src=&quot;http://blogs.dotnethell.it/icons/ThumbUp2.gif&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description>
<dc:creator>Alessandro Alpi</dc:creator>
<slash:comments>0</slash:comments>
<comments>http://blogs.dotnethell.it/suxstellino/ReadComment_19169.aspx</comments>
<category>SQL Server 2012</category>
</item>
<item>
<title>SQL Server &amp; Business Intelligence 2013</title>
<link>http://blogs.dotnethell.it/suxstellino/Post_19158.aspx</link>
<pubDate>Tue, 23 Apr 2013 00:46:31 +0100</pubDate>
<source url="http://blogs.dotnethell.it/suxstellino/rss.aspx">Alessandro Alpi</source>
<description>Finalmente ci siamo, la&amp;nbsp;&lt;a href=&quot;http://www.sqlconference.it/events/2013/default.aspx&quot;&gt;SQL Server &amp;amp; Business Intelligence&lt;/a&gt; avr&#224; luogo a fine maggio a Milano, per parlare di tutto quanto possibile sulla famiglia &lt;a href=&quot;http://www.microsoft.com/en-us/sqlserver/default.aspx&quot;&gt;Microsoft SQL Server&lt;/a&gt; in ottica di Business Intelligence.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;http://blogs.dotnethell.it/filestore/10806_stripesql2013.PNG&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&quot;&lt;i&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;SQL Server &amp;amp; Business Intelligence Conference 2013 &#232; l’appuntamento annuale per tutti gli specialisti che lavorano con i prodotti della famiglia&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;Microsoft SQL Server&lt;/strong&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;e si occupano di&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;Business Intelligence&lt;/strong&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;con tecnologie Microsoft.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;A distanza di un anno dal rilascio di Microsoft SQL Server 2012, questa edizione sar&#224; focalizzata su molti&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;approfondimenti della parte relazionale&lt;/strong&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;, con l’obiettivo di consolidare le conoscenze e migliorare l’adozione delle best practice. Per quanto riguarda la sezione di Business Intelligence, oltre a sessioni di approfondimento su tecnologie gi&#224; presentate un anno fa, ci sar&#224; anche spazio per le&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;novit&#224; rilasciate negli ultimi 12 mesi&lt;/strong&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px; background-color: rgb(255, 255, 255);&quot;&gt;, in particolare sul lato client (Excel e SharePoint in particolare).&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;Speaker, sessioni e round-table&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Quest'anno l'evento presenter&#224; tredici &lt;a href=&quot;http://www.sqlconference.it/events/2013/speakers.aspx&quot;&gt;speaker&lt;/a&gt;: &quot;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; background-color: rgb(255, 255, 255); color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px;&quot;&gt;&lt;i&gt;Conoscenza, esperienza sul campo e capacit&#224; espositiva sono le loro caratteristiche principali.&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Inoltre oltre alle due sale ve ne sar&#224; una terza dedicata alla round-table: &quot;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; background-color: rgb(255, 255, 255); color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px;&quot;&gt;&lt;i&gt;Si tratta di una vera e propria tavola rotonda dove il titolo indicato in agenda identifica un argomento che sar&#224; l’oggetto delle domande e degli interventi da parte di partecipanti e relatori.&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;La lista delle sessioni &lt;a href=&quot;http://www.sqlconference.it/events/2013/agenda.aspx&quot;&gt;qui&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Da non dimenticare la &lt;/span&gt;&lt;a href=&quot;http://www.sqlconference.it/events/2013/sqlclinic.aspx&quot; style=&quot;font-size: 10pt;&quot;&gt;SQLClinic&lt;/a&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;: &quot;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; background-color: rgb(255, 255, 255); color: rgb(34, 34, 34); font-family: Verdana; line-height: 20px;&quot;&gt;&lt;i&gt;Anche quest'anno avrai la possibilit&#224; di passare dai dottori della SQL Clinic per chiedere assistenza e tornare a casa con la medicina giusta&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;Logistica&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Data dell'evento: 28-29 maggio&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Luogo:&amp;nbsp;&lt;a href=&quot;http://www.sqlconference.it/events/2013/location.aspx&quot;&gt;Enterprise Hotel, Corso Sempione 91, &amp;nbsp;Milano&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Per ulteriori informazioni, riferirsi alla sezione &lt;/span&gt;&lt;a href=&quot;http://www.sqlconference.it/events/2013/faq.aspx&quot; style=&quot;font-size: 10pt;&quot;&gt;FAQ&lt;/a&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Informazioni sui social:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 style=&quot;color: rgb(34, 34, 34); font-family: arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: 'Segoe UI', sans-serif;&quot;&gt;Twitter: &amp;nbsp;@conferenze&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #SQL2013&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 9pt; font-family: 'Segoe UI', sans-serif;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://linkd.in/UiPO2J&quot;&gt;Linkedin&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 9pt; font-family: 'Segoe UI', sans-serif;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 9pt; font-family: 'Segoe UI', sans-serif;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.facebook.com/events/407286642700728/&quot;&gt;Facebook&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Mi raccomando, non mancate!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Stay Tuned!&amp;nbsp;&lt;img src=&quot;http://blogs.dotnethell.it/icons/ThumbUp2.gif&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description>
<dc:creator>Alessandro Alpi</dc:creator>
<slash:comments>0</slash:comments>
<comments>http://blogs.dotnethell.it/suxstellino/ReadComment_19158.aspx</comments>
<category>Eventi</category>
</item>
</channel>
</rss>
