<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>SELECT @@name = "A SQL Professional"</title><link>http://sqljunkies.com/WebLog/amitjethva/default.aspx</link><description>/* Amit Jethva */</description><dc:language>en</dc:language><generator>CommunityServer 1.0 (Build: 1.0.1.50214)</generator><item><title>Free Brainbench certification </title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/07/02/3383.aspx</link><pubDate>Fri, 02 Jul 2004 18:36:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:3383</guid><dc:creator>amitjethva</dc:creator><slash:comments>3</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/3383.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=3383</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Brainbench.com is offering free exams during 1&lt;SUP&gt;st&lt;/SUP&gt; july 2004 to 15&lt;SUP&gt;th&lt;/SUP&gt; july 2004. I gave &lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;a title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target="_blank"&gt;SQL Server&lt;/a&gt; Server&lt;/A&gt; Server&lt;/A&gt; 2000 exams for DBA and developer to examine my skillsets. It is worth taking a shot at your skills. &lt;BR&gt;&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&lt;BR&gt;Currently I stand at 6&lt;SUP&gt;th&lt;/SUP&gt; in &lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;a title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target="_blank"&gt;SQL Server&lt;/a&gt; Server&lt;/A&gt; ADMIN Scores !&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;My Results as on now: Brainbench transcript id &lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;&lt;A href="http://www.brainbench.com/transcript.jsp?pid=1118376"&gt;&lt;SPAN name="demo_personid"&gt;&lt;STRONG&gt;1118376&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Certification Name:&amp;nbsp; Master MS &lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;a title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target="_blank"&gt;SQL Server&lt;/a&gt; Server&lt;/A&gt; Server&lt;/A&gt; Server&lt;/A&gt; Server 2000 Administration&lt;BR&gt;Date:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2004-07-02&lt;BR&gt;Authority:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Brainbench&lt;BR&gt;Score:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.61 (Scale of 1 - 5 where 5.0 = Best)&lt;BR&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Higher than 99% of all previous test takers&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;--------------------------------------------------------------------&lt;BR&gt;Certification Name:&amp;nbsp; MS &lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;A title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target=_blank&gt;&lt;a title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target="_blank"&gt;SQL Server&lt;/a&gt; Server&lt;/A&gt; Server&lt;/A&gt; Server&lt;/A&gt; Server 2000 Programming&lt;BR&gt;Date:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2004-07-02&lt;BR&gt;Authority:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Brainbench&lt;BR&gt;Score:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.72 (Scale of 1 - 5 where 5.0 = Best)&lt;BR&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Higher than 97% of all previous test takers.&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face="Courier New"&gt;--------------------------------------------------------------------&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=3383" width="1" height="1"&gt;</description></item><item><title>How do I use SQL Server Express </title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/07/01/3370.aspx</link><pubDate>Thu, 01 Jul 2004 19:24:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:3370</guid><dc:creator>amitjethva</dc:creator><slash:comments>3</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/3370.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=3370</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I downloaded &lt;a title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target="_blank"&gt;SQL Server&lt;/a&gt; 2005 Express Edition and managed to install it successfully. It took me some time to realise that the install did not gave me any particular GUI tool to use. !!!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I tried Enterprise manager / ISQLW&amp;nbsp;(of sql 2000) and came across this message !!!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;BR&gt;&lt;STRONG&gt;&amp;#8220;A connection could not be established to TESTSERVER\SQLEXPRESS.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Reason: [SQL-DMO]You must use &lt;a title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target="_blank"&gt;SQL Server&lt;/a&gt; Server Workbench or &lt;a title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target="_blank"&gt;SQL Server&lt;/a&gt; Server Management Objects (SMO) to connect to this server..&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Please verify &lt;a title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target="_blank"&gt;SQL Server&lt;/a&gt; Server is running and check your &lt;a title="MS SQL Server HOME" href="http://www.microsoft.com/sql" target="_blank"&gt;SQL Server&lt;/a&gt; Server registration properties (by right-clicking on the TESTSERVER\SQLEXPRESS node) and try again.&lt;/STRONG&gt;&amp;#8220;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;from the MS website, I came to know that &amp;#8220;SQL Server Express Manager&amp;#8220; will be available August 2004. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Can anyone tell me how do I use this engine without a good front-end such as EM or ISQLW. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=3370" width="1" height="1"&gt;</description></item><item><title>GMAIL first look</title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/06/21/3232.aspx</link><pubDate>Mon, 21 Jun 2004 15:16:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:3232</guid><dc:creator>amitjethva</dc:creator><slash:comments>4</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/3232.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=3232</wfw:commentRss><description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Finally, I also have a GMAIL account&amp;nbsp; ( thanks manuj for this.) &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;My First Login attempt to gmail came up with this ..&lt;/FONT&gt;&lt;/P&gt;&lt;IMG src="/WebLog/images/sqljunkies_com/amitjethva/255/r_gmail%20error.JPG"&gt; &lt;/IMG&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=3232" width="1" height="1"&gt;</description></item><item><title>Missing Numbers in a IDENTITY COLUMN</title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/06/18/3207.aspx</link><pubDate>Fri, 18 Jun 2004 19:59:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:3207</guid><dc:creator>amitjethva</dc:creator><slash:comments>2</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/3207.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=3207</wfw:commentRss><description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came across a post in a forum related to finding out range of missing numbers in an identity column. (or a numeric column!)&lt;/P&gt;
&lt;P&gt;There were a couple of solutions suggested by members. such as &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;SELECT T.IdCol + 1 AS IdCol, ( SELECT MIN(J.IdCol) FROM MyTable J WHERE J.IdCol &amp;gt; T.IdCol ) - IdCol - 1 AS Items&lt;BR&gt;FROM MyTable T &lt;BR&gt;WHERE ( SELECT MIN(J.IdCol) FROM MyTable J WHERE J.IdCol &amp;gt; T.IdCol) - T.IdCol &amp;gt;= 2&lt;BR&gt;ORDER BY IdCol&lt;BR&gt;GO&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;SELECT q.LowerMissing, q.UpperMissing, (q.UpperMissing - q.LowerMissing) AS [Difference] FROM&lt;BR&gt;&amp;nbsp;( SELECT (IdCol&amp;nbsp; + 1) LowerMissing,&amp;nbsp; (SELECT MIN(IdCol ) FROM MyTable&amp;nbsp; WHERE IdCol&amp;nbsp; &amp;gt; A.IdCol ) - 1 UpperMissing&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FROM&amp;nbsp; MyTable&amp;nbsp; A&amp;nbsp; WHERE&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(&amp;nbsp; SELECT MIN(IdCol ) FROM MyTable&amp;nbsp; WHERE IdCol&amp;nbsp; &amp;gt; A.IdCol ) - IdCol&amp;nbsp; &amp;gt;= 2&lt;BR&gt;) q&lt;BR&gt;ORDER BY [Difference] desc&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I worked out one for myself.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;FONT face="Courier New" size=2&gt;SELECT * , q.UpperMissing - q.LowerMissing + 1 TotalMissing FROM &lt;BR&gt;( &lt;BR&gt;&amp;nbsp;&amp;nbsp; SELECT&amp;nbsp; A.IdCol + 1 LowerMissing , (SELECT MIN( IdCol ) FROM TableName&amp;nbsp; WHERE IdCol&amp;nbsp; &amp;gt; A.IdCol ) - 1 UpperMissing &lt;BR&gt;&amp;nbsp;&amp;nbsp; FROM TableName A &lt;BR&gt;) Q &lt;BR&gt;WHERE (q.UpperMissing - q.LowerMissing) &amp;gt;= 0&lt;BR&gt;ORDER BY 2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=3207" width="1" height="1"&gt;</description></item><item><title>Tool for blog</title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/06/16/3166.aspx</link><pubDate>Wed, 16 Jun 2004 19:10:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:3166</guid><dc:creator>amitjethva</dc:creator><slash:comments>4</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/3166.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=3166</wfw:commentRss><description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Hi people,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I found another tool called &lt;/FONT&gt;&lt;A href="http://www.synop.com/Products/SauceReader/"&gt;&lt;FONT face=Verdana size=2&gt;"Sauce Reader&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;". This piece of software allows me to &lt;STRONG&gt;read&lt;/STRONG&gt; and &lt;STRONG&gt;write &lt;/STRONG&gt;blogs from my desktop. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;This is a cool feature combined together in a single software!! It is in a beta version. but worth a try.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=3166" width="1" height="1"&gt;</description></item><item><title>w.bloggar v 3.00</title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/06/16/3164.aspx</link><pubDate>Wed, 16 Jun 2004 16:33:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:3164</guid><dc:creator>amitjethva</dc:creator><slash:comments>4</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/3164.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=3164</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana,Arial,Helvetica,sans-serif color=#000000 size=2&gt;Hi friends, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana,Arial,Helvetica,sans-serif color=#000000 size=2&gt;This is a post created to test a tool called &lt;A href="http://wbloggar.com/"&gt;w.bloggar&lt;/A&gt;. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana,Arial,Helvetica,sans-serif color=#000000 size=2&gt;It is a software that gives me a rich editor for publishing my blog post from my desktop (without using browser). looks great to use !! &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=3164" width="1" height="1"&gt;</description></item><item><title>Ever Tried This ???</title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/06/15/3148.aspx</link><pubDate>Tue, 15 Jun 2004 19:22:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:3148</guid><dc:creator>amitjethva</dc:creator><slash:comments>5</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/3148.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=3148</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;FONT color=#000080&gt;Connect to any of your SQL Servers (I used 2000) and execute following command.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;FONT color=#000080&gt;backup table&lt;/FONT&gt; authors &lt;FONT color=#000080&gt;to DISK &lt;/FONT&gt;=&lt;FONT color=#ff0000&gt;'c:\authors.bak'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#ff0000 size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#ff0000 size=2&gt;&lt;STRONG&gt;Is this going to be implemented in YUKON ?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#ff0000 size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#ff0000 size=2&gt;&lt;/FONT&gt;&lt;FONT face=Verdana color=#ff0000 size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=3148" width="1" height="1"&gt;</description></item><item><title>Non-Deterministic UDF's -- Custom Aggregate and Cumulative Functions </title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/06/04/2878.aspx</link><pubDate>Fri, 04 Jun 2004 15:16:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:2878</guid><dc:creator>amitjethva</dc:creator><slash:comments>15</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/2878.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=2878</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;A beautiful use of UDFs and sp_Oa procedures. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://weblogs.sqlteam.com/jeffs/articles/1490.aspx"&gt;&lt;FONT face=Verdana size=2&gt;http://weblogs.sqlteam.com/jeffs/articles/1490.aspx&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=2878" width="1" height="1"&gt;</description></item><item><title>Another approach to CROSSTAB queries.</title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/06/04/2870.aspx</link><pubDate>Fri, 04 Jun 2004 12:28:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:2870</guid><dc:creator>amitjethva</dc:creator><slash:comments>4</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/2870.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=2870</wfw:commentRss><description>&lt;FONT size=2&gt;
&lt;P&gt;&lt;A href="http://www.stephenforte.net/owdasblog/PermaLink.aspx?guid=2b0532fc-4318-4ac0-a405-15d6d813eeb8"&gt;&lt;FONT face=Verdana&gt;http://www.stephenforte.net/owdasblog/PermaLink.aspx?guid=2b0532fc-4318-4ac0-a405-15d6d813eeb8&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;/* the way shown in that blog */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;SELECT&amp;nbsp; CompanyName, SUM((UnitPrice*Quantity)) As TotalAmt,&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-1)))) , &lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-2)))) , &lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-3)))) ,&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-4)))) ,&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-5)))) ,&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-6)))) ,&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-7)))) ,&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-8)))) ,&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-9)))) ,&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-10)))),&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-11)))),&lt;BR&gt;&amp;nbsp; SUM((UnitPrice*Quantity)*(1-ABS(SIGN(DatePart(mm,OrderDate)-12))))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;FROM&amp;nbsp; Customers INNER JOIN&lt;BR&gt;Orders ON Customers.CustomerID = Orders.CustomerID INNER JOIN&lt;BR&gt;[Order Details] ON Orders.OrderID = [Order Details].OrderID&lt;BR&gt;Group By Customers.CompanyName&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;GO&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;/* MY WAY -- takes 1 less step compared to previous in Query Execution Plan&amp;nbsp; */ &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;SELECT&amp;nbsp; CompanyName, SUM((UnitPrice*Quantity)) As TotalAmt,&lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 1&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 2&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 3&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 4&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 5&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 6&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 7&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 8&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 9&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 10&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 11&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) , &lt;BR&gt;&amp;nbsp; SUM( CASE DatePart(mm,OrderDate) WHEN 12&amp;nbsp; THEN (UnitPrice*Quantity) ELSE 0 END&amp;nbsp; ) &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;FROM&amp;nbsp; Customers INNER JOIN&lt;BR&gt;Orders ON Customers.CustomerID = Orders.CustomerID INNER JOIN&lt;BR&gt;[Order Details] ON Orders.OrderID = [Order Details].OrderID&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Group By Customers.CompanyName&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;GO&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.stephenforte.net/owdasblog/Trackback.aspx?guid=2b0532fc-4318-4ac0-a405-15d6d813eeb8"&gt;Trackback &lt;/A&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=2870" width="1" height="1"&gt;</description></item><item><title>@@TIMETICKS ? ?</title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/05/27/2743.aspx</link><pubDate>Thu, 27 May 2004 17:03:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:2743</guid><dc:creator>amitjethva</dc:creator><slash:comments>4</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/2743.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=2743</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana color=#000000 size=2&gt;I was going through the BOL and i noticed the function @@TIMETICKS.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana color=#000000 size=2&gt;I wonder what is the practical use of this function! A quick search on GOOGLE did not gave me anything special on @@TIMETICKS except the defination. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;
&lt;HR id=null&gt;
&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;H1&gt;@@TIMETICKS&lt;/H1&gt;
&lt;P&gt;Returns the number of microseconds per tick.&lt;/P&gt;
&lt;H5&gt;Syntax&lt;/H5&gt;
&lt;P&gt;@@TIMETICKS&lt;/P&gt;
&lt;H5&gt;Return Types&lt;/H5&gt;
&lt;P&gt;&lt;B&gt;integer&lt;/B&gt;&lt;/P&gt;
&lt;H5&gt;Remarks&lt;/H5&gt;
&lt;P&gt;The amount of time per tick is computer-dependent. Each tick on the operating system is 31.25 milliseconds, or one thirty-second of a second.&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=2743" width="1" height="1"&gt;</description></item><item><title>Hi bloggers </title><link>http://sqljunkies.com/WebLog/amitjethva/archive/2004/05/26/2725.aspx</link><pubDate>Wed, 26 May 2004 15:18:00 GMT</pubDate><guid isPermaLink="false">d2584c15-f6ef-46f7-a2d4-24fc0e143e76:2725</guid><dc:creator>amitjethva</dc:creator><slash:comments>3</slash:comments><comments>http://sqljunkies.com/WebLog/amitjethva/comments/2725.aspx</comments><wfw:commentRss>http://sqljunkies.com/WebLog/amitjethva/commentrss.aspx?PostID=2725</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;This is my first post as a blogger. Thanks to my friend Manuj (&lt;A href="http://sqljunkies.com/WebLog/enigma/"&gt;Enigma&lt;/A&gt;)&amp;nbsp;for introducing me to the blogging. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;I started my career as Developer on VB/PB/ASP/APT - SQL/Sybase/Oracle. Moved to SQL Admin&amp;nbsp;first in Nov 2000 on SQL 7.0&amp;nbsp; and later on to SQL 2000, but with more of a developer workload. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Since last 2 years or so,&amp;nbsp;I have been focusing more on SQL Admin stuff. and I have enjoyed working on SQL Server. My main areas of intrest in SQL are SQL Database Design, Scripting, troubleshooting&amp;nbsp;and Perfomance Tuning.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Now, I am looking forward to SQL Server 2005 &lt;STRIKE&gt;Yukon&lt;/STRIKE&gt; to arive. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=2725" width="1" height="1"&gt;</description></item></channel></rss>