<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblogcasts.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>My two cents - All Comments</title><link>http://sqlblogcasts.com/blogs/leopasta/default.aspx</link><description>Tips, opinions, tests (and misspellings) from a Brazilian DBA in UK</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Link Listing - May 11, 2008</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2008/05/08/which-queries-are-missing-indexes.aspx#10385</link><pubDate>Mon, 12 May 2008 07:41:14 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:10385</guid><dc:creator>Christopher Steen</dc:creator><description>&lt;p&gt;Link Listing - May 11, 2008&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=10385" width="1" height="1"&gt;</description></item><item><title>re: SQLBits</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2008/03/02/sqlbits.aspx#8831</link><pubDate>Fri, 07 Mar 2008 09:42:23 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:8831</guid><dc:creator>Christian</dc:creator><description>&lt;p&gt;Thanks for the write-up Leo :) &amp;nbsp;I added a post to my blog with a link to the slidedeck here: &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://sqlblogcasts.com/blogs/christian/archive/2008/03/06/my-session-at-sqlbits-ii.aspx"&gt;http://sqlblogcasts.com/blogs/christian/archive/2008/03/06/my-session-at-sqlbits-ii.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Christian Bolton &amp;nbsp;MCA: Database&lt;/p&gt;
&lt;p&gt;Database Architect&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://coeo.com"&gt;http://coeo.com&lt;/a&gt; - The SQL Server Experts &lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=8831" width="1" height="1"&gt;</description></item><item><title>Return messages during long-running T-SQL Batches</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#2358</link><pubDate>Sun, 26 Aug 2007 23:45:19 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2358</guid><dc:creator>DATALEXIS</dc:creator><description>&lt;p&gt;Return messages during long-running T-SQL Batches&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2358" width="1" height="1"&gt;</description></item><item><title>re: Page splits</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/08/13/page-splits.aspx#2199</link><pubDate>Tue, 14 Aug 2007 08:35:48 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2199</guid><dc:creator>Colin Leversuch-Roberts</dc:creator><description>&lt;p&gt;I've done some &amp;quot;non scientific&amp;quot; testing to see if and how I could slow down inserts, I was trying to prove that adding indexes could slow performance by a measurable amount. So far I've not really had much success, inserting several &amp;gt;8k text columns will slow things , however in the main my inserts to the table were occuring at one end ( like a heap except it wasn't ) the secondary indexes split because I set the data to do that. It's interesting to extract that information and I wish the actual counter had more granularity - as you've suggested it probably has little to do with the issue and I'd sort of agree.&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2199" width="1" height="1"&gt;</description></item><item><title>re: Instant gratification</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#2041</link><pubDate>Wed, 11 Jul 2007 02:53:39 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2041</guid><dc:creator>Jeff Moden</dc:creator><description>&lt;p&gt;Thanks, Leo... no, I was aware of that... I must have some other setting out of whack... I'll have to play with settings such as &amp;quot;Scroll as data is received&amp;quot;, etc.&lt;/p&gt;
&lt;p&gt;Thanks for the feedback... this is a really good idea. &amp;nbsp;If I figure it out, I'll post back.&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2041" width="1" height="1"&gt;</description></item><item><title>re: Instant gratification</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#2028</link><pubDate>Tue, 10 Jul 2007 08:38:17 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2028</guid><dc:creator>leo.pasta</dc:creator><description>&lt;p&gt;Jeff,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; I think I might have found the issue. I have noticed that if the output is set to grid, when we run a query, SSMS (and Query Analyzer) keeps on the &amp;quot;Grids&amp;quot; pane, hiding any messages until completion.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; If that's indeed the case, it's just a matter of select text output or click on the &amp;quot;Messages&amp;quot; tab as soon as you start the script.&lt;/p&gt;
&lt;p&gt;Regards, &lt;/p&gt;
&lt;p&gt;Leo.&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2028" width="1" height="1"&gt;</description></item><item><title>re: Instant gratification</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#2026</link><pubDate>Mon, 09 Jul 2007 23:42:09 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2026</guid><dc:creator>Jeff Moden</dc:creator><description>&lt;p&gt;Not sure what I'm doing differently... for me, the message didn't appear in the &amp;quot;text&amp;quot; results window of QA until the final rowcount was produced. &amp;nbsp;Perhaps I'm doing something wrong. &amp;nbsp;Would really like this to work as the very concept is very useful and any suggestion you have would be very much appreciated.&lt;/p&gt;
&lt;p&gt;Thanks, Leo...&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2026" width="1" height="1"&gt;</description></item><item><title>re: Instant gratification</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#2024</link><pubDate>Mon, 09 Jul 2007 19:46:10 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2024</guid><dc:creator>leo.pasta</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;I tested on two instances I had handy and it work as expected, I received the messages as soon as they were produced. The servers were a SQL 2000 SP4 and a SQL 2005 SP2.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;All the tests were local connections, though. Let me try using remote connections and I will update on the results. &lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2024" width="1" height="1"&gt;</description></item><item><title>re: Instant gratification</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#2007</link><pubDate>Sun, 08 Jul 2007 05:00:40 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:2007</guid><dc:creator>Jeff Moden</dc:creator><description>&lt;p&gt;Doesn't seem to work in the face of agressive code... &lt;/p&gt;
&lt;p&gt;--===== Create and populate a 1,000,000 row test table.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column RowNum has a range of 1 to 1,000,000 unique numbers&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column &amp;quot;SomeInt&amp;quot; has a range of 1 to 50,000 non-unique numbers&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column &amp;quot;SomeString&amp;quot; has a range of &amp;quot;AA&amp;quot; to &amp;quot;ZZ&amp;quot; non-unique 2 character strings&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column &amp;quot;SomeNumber has a range of 0.0000 to 99.9999 non-unique numbers&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column &amp;quot;SomeDate&amp;quot; has a range of &amp;nbsp;&amp;gt;=01/01/2000 and &amp;lt;01/01/2010 non-unique date/times&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Takes about 42 seconds to execute.&lt;/p&gt;
&lt;p&gt; SELECT TOP 1000000&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RowNum &amp;nbsp; &amp;nbsp; = IDENTITY(INT,1,1),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeInt &amp;nbsp; &amp;nbsp;= CAST(RAND(CAST(NEWID() AS VARBINARY))*50000+1 AS INT),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeString = CHAR(STR(RAND(CAST(NEWID() AS VARBINARY))*25+65))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + CHAR(STR(RAND(CAST(NEWID() AS VARBINARY))*25+65)),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeCSV &amp;nbsp; &amp;nbsp;= 'Part1,Part2,Part3,Part4,Part5,Part6,Part7,Part8,Part9,Part10',&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeNumber = CAST(RAND(CAST(NEWID() AS VARBINARY))*100 AS MONEY),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeDate &amp;nbsp; = CAST(RAND(CAST(NEWID() AS VARBINARY))*3653.0+36524.0 AS DATETIME)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; INTO dbo.JBMTest&lt;/p&gt;
&lt;p&gt; &amp;nbsp; FROM Master.dbo.SysColumns sc1,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Master.dbo.SysColumns sc2 --Lack of join criteria makes this a CROSS-JOIN&lt;/p&gt;
&lt;p&gt;--===== A table is not properly formed unless a Primary Key has been assigned&lt;/p&gt;
&lt;p&gt; &amp;nbsp;ALTER TABLE dbo.JBMTest&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ADD PRIMARY KEY CLUSTERED (RowNum)&lt;/p&gt;
&lt;p&gt;DECLARE @Message varchar (100)&lt;/p&gt;
&lt;p&gt;SET @Message = 'First run complete ' + CONVERT (CHAR (20), GETDATE (), 8)&lt;/p&gt;
&lt;p&gt;RAISERROR (@Message, 0, 1) WITH NOWAIT &lt;/p&gt;
&lt;p&gt;DROP TABLE JBMTest&lt;/p&gt;
&lt;p&gt;--===== Create and populate a 1,000,000 row test table.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column RowNum has a range of 1 to 1,000,000 unique numbers&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column &amp;quot;SomeInt&amp;quot; has a range of 1 to 50,000 non-unique numbers&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column &amp;quot;SomeString&amp;quot; has a range of &amp;quot;AA&amp;quot; to &amp;quot;ZZ&amp;quot; non-unique 2 character strings&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column &amp;quot;SomeNumber has a range of 0.0000 to 99.9999 non-unique numbers&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Column &amp;quot;SomeDate&amp;quot; has a range of &amp;nbsp;&amp;gt;=01/01/2000 and &amp;lt;01/01/2010 non-unique date/times&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -- Takes about 42 seconds to execute.&lt;/p&gt;
&lt;p&gt; SELECT TOP 1000000&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RowNum &amp;nbsp; &amp;nbsp; = IDENTITY(INT,1,1),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeInt &amp;nbsp; &amp;nbsp;= CAST(RAND(CAST(NEWID() AS VARBINARY))*50000+1 AS INT),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeString = CHAR(STR(RAND(CAST(NEWID() AS VARBINARY))*25+65))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + CHAR(STR(RAND(CAST(NEWID() AS VARBINARY))*25+65)),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeCSV &amp;nbsp; &amp;nbsp;= 'Part1,Part2,Part3,Part4,Part5,Part6,Part7,Part8,Part9,Part10',&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeNumber = CAST(RAND(CAST(NEWID() AS VARBINARY))*100 AS MONEY),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SomeDate &amp;nbsp; = CAST(RAND(CAST(NEWID() AS VARBINARY))*3653.0+36524.0 AS DATETIME)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; INTO dbo.JBMTest&lt;/p&gt;
&lt;p&gt; &amp;nbsp; FROM Master.dbo.SysColumns sc1,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Master.dbo.SysColumns sc2 --Lack of join criteria makes this a CROSS-JOIN&lt;/p&gt;
&lt;p&gt;--===== A table is not properly formed unless a Primary Key has been assigned&lt;/p&gt;
&lt;p&gt; &amp;nbsp;ALTER TABLE dbo.JBMTest&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ADD PRIMARY KEY CLUSTERED (RowNum)&lt;/p&gt;
&lt;p&gt;PRINT CONVERT (CHAR (20), GETDATE (), 8)&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=2007" width="1" height="1"&gt;</description></item><item><title>Couple RAISERROR with Profiler / Event Notifications - see whats going on!</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#1989</link><pubDate>Thu, 05 Jul 2007 06:57:07 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1989</guid><dc:creator>Tony Rogerson's ramblings on SQL Server</dc:creator><description>&lt;p&gt;Leo Pasta gives a good tip on using RAISERROR and NOWAIT , in addition to this in SQL 2005 we can trap&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1989" width="1" height="1"&gt;</description></item><item><title>re: Instant gratification</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#1982</link><pubDate>Wed, 04 Jul 2007 05:13:40 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1982</guid><dc:creator>Julian-Kuiters</dc:creator><description>&lt;p&gt;I've taken Leo's code above and wrapped it into two easy to use stored procedures to save time.&lt;/p&gt;
&lt;p&gt;You can download them from &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://www.julian-kuiters.id.au/article.php/sql-snippet-instant-print-time&amp;quot;&amp;gt;http://www.julian-kuiters.id.au/article.php/sql-snippet-instant-print-time&amp;lt;/a&amp;gt;"&gt;http://www.julian-kuiters.id.au/article.php/sql-snippet-instant-print-time&amp;quot;&amp;gt;http://www.julian-kuiters.id.au/article.php/sql-snippet-instant-print-time&amp;lt;/a&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1982" width="1" height="1"&gt;</description></item><item><title>TSQL : How to get messages sent first class</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#1976</link><pubDate>Mon, 02 Jul 2007 23:26:26 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1976</guid><dc:creator>SimonS' SQL Server Stuff </dc:creator><description>&lt;p&gt;Leo has posted a great tip about how to get messages output in a TSQL batch without waiting until the...&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1976" width="1" height="1"&gt;</description></item><item><title>TSQL : How to get messages sent first class</title><link>http://sqlblogcasts.com/blogs/leopasta/archive/2007/07/03/instant-gratification.aspx#1975</link><pubDate>Mon, 02 Jul 2007 23:26:24 GMT</pubDate><guid isPermaLink="false">fa8c4e8e-46a3-4193-8264-2c1a9cb3475d:1975</guid><dc:creator>SimonS SQL Server Stuff</dc:creator><description>&lt;p&gt;Leo has posted a great tip about how to get messages output in a TSQL batch without waiting until the&lt;/p&gt;
&lt;img src="http://sqlblogcasts.com/aggbug.aspx?PostID=1975" width="1" height="1"&gt;</description></item></channel></rss>