<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments for Journey to SQL Authority with Pinal Dave</title>
	<atom:link href="http://blog.sqlauthority.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<pubDate>Sat, 22 Nov 2008 05:31:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on SQL SERVER - Better Performance - LEFT JOIN or NOT IN? by Bob Zagars</title>
		<link>http://blog.sqlauthority.com/2008/04/22/sql-server-better-performance-left-join-or-not-in/#comment-44352</link>
		<dc:creator>Bob Zagars</dc:creator>
		<pubDate>Sat, 22 Nov 2008 04:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=578#comment-44352</guid>
		<description>Simple...KISS!

Oracle does not have Exists.  Is there an equivalent?

Bob</description>
		<content:encoded><![CDATA[<p>Simple&#8230;KISS!</p>
<p>Oracle does not have Exists.  Is there an equivalent?</p>
<p>Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - 2005 - Database Table Partitioning Tutorial - How to Horizontal Partition Database Table by COBRASoft</title>
		<link>http://blog.sqlauthority.com/2008/01/25/sql-server-2005-database-table-partitioning-tutorial-how-to-horizontal-partition-database-table/#comment-44349</link>
		<dc:creator>COBRASoft</dc:creator>
		<pubDate>Sat, 22 Nov 2008 02:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=485#comment-44349</guid>
		<description>Hi,

I have several tables with more than 2 million records. It is about invoices, invoicedetail, invoicedescription (multi-language) and invoicepayments. I get time-outs everywhere in my software due to this huge tables. Any idea if partitioning will solve this? Do you have an idea how I could partition these?

Greetings,
Sigurd</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have several tables with more than 2 million records. It is about invoices, invoicedetail, invoicedescription (multi-language) and invoicepayments. I get time-outs everywhere in my software due to this huge tables. Any idea if partitioning will solve this? Do you have an idea how I could partition these?</p>
<p>Greetings,<br />
Sigurd</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database by SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database Including Schema Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-44348</link>
		<dc:creator>SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database Including Schema Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Sat, 22 Nov 2008 01:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-44348</guid>
		<description>[...] by pinaldave    I love active participation from my readers. Just a day ago I wrote article about SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database. I just received comment from Jerry Hung who have improved on previously written article of [...]</description>
		<content:encoded><![CDATA[<p>[...] by pinaldave    I love active participation from my readers. Just a day ago I wrote article about SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database. I just received comment from Jerry Hung who have improved on previously written article of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - Difference between DISTINCT and GROUP BY - Distinct vs Group By by Steve Hatchard</title>
		<link>http://blog.sqlauthority.com/2007/03/29/sql-server-difference-between-distinct-and-group-by-distinct-vs-group-by/#comment-44342</link>
		<dc:creator>Steve Hatchard</dc:creator>
		<pubDate>Fri, 21 Nov 2008 18:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/29/difference-between-distinct-and-group-by-distinct-vs-group-by/#comment-44342</guid>
		<description>There is a third approach if you have a master and detail table - WHERE EXISTS. For example, if you have an OrderHeader table and an OrderItem table that have a one to many relationship on OrderHeaderId, you can decide unique orders in OrderItem one of 2 ways

SELECT DISTINCT orderheaderid from orderitem

SELECT orderheaderid FROM orderheader oh WHERE EXISTS (SELECT 1 FROM OrderItem WHERE OrderHeaderId=oh.OrderHeaderId)

If these queries are run together, the "DISTINCT" query takes about 2/3 total query time, with WHERE EXISTS taken up a 1/3.

(Ahh but why dont you just select from OrderHeader in this case. Well that would not omit orders that have no item records - if thats how you represent cancelled orders)

In production code, always try to write SQL queries that produce unique results WITHOUT DISTINCT clauses. If performance is what you are after and you have one to many table relationships, use WHERE EXISTS.

We have published an article of SQL Performance Do's and Dont's if thats of help to anyone.

Steve Hatchard
Director
Mattched IT Ltd</description>
		<content:encoded><![CDATA[<p>There is a third approach if you have a master and detail table - WHERE EXISTS. For example, if you have an OrderHeader table and an OrderItem table that have a one to many relationship on OrderHeaderId, you can decide unique orders in OrderItem one of 2 ways</p>
<p>SELECT DISTINCT orderheaderid from orderitem</p>
<p>SELECT orderheaderid FROM orderheader oh WHERE EXISTS (SELECT 1 FROM OrderItem WHERE OrderHeaderId=oh.OrderHeaderId)</p>
<p>If these queries are run together, the &#8220;DISTINCT&#8221; query takes about 2/3 total query time, with WHERE EXISTS taken up a 1/3.</p>
<p>(Ahh but why dont you just select from OrderHeader in this case. Well that would not omit orders that have no item records - if thats how you represent cancelled orders)</p>
<p>In production code, always try to write SQL queries that produce unique results WITHOUT DISTINCT clauses. If performance is what you are after and you have one to many table relationships, use WHERE EXISTS.</p>
<p>We have published an article of SQL Performance Do&#8217;s and Dont&#8217;s if thats of help to anyone.</p>
<p>Steve Hatchard<br />
Director<br />
Mattched IT Ltd</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - FIX : Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server error log for details by Igor</title>
		<link>http://blog.sqlauthority.com/2007/08/02/sql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-disk-space-see-the-sql-server-error-log-for-details/#comment-44341</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Fri, 21 Nov 2008 18:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/02/sql-server-fix-error-945-database-cannot-be-opened-due-to-inaccessible-files-or-insufficient-memory-or-disk-space-see-the-sql-server-error-log-for-details/#comment-44341</guid>
		<description>Perfect  set offline them online worked like a charm  

many thankz</description>
		<content:encoded><![CDATA[<p>Perfect  set offline them online worked like a charm  </p>
<p>many thankz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - Retrieve Current Date Time in SQL Server CURRENT_TIMESTAMP, GETDATE(), {fn NOW()} by Rosales</title>
		<link>http://blog.sqlauthority.com/2007/06/21/sql-server-retrieve-current-date-time-in-sql-server-current_timestamp-getdate-fn-now/#comment-44339</link>
		<dc:creator>Rosales</dc:creator>
		<pubDate>Fri, 21 Nov 2008 18:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/21/sql-server-retrieve-current-date-time-in-sql-server-current_timestamp-getdate-fn-now/#comment-44339</guid>
		<description>the Answer to the getdate issue is simply to put Default
i.e 
Insert into tableName(v1,va2,datetime)
          values('myself','yourself',default)

done.</description>
		<content:encoded><![CDATA[<p>the Answer to the getdate issue is simply to put Default<br />
i.e<br />
Insert into tableName(v1,va2,datetime)<br />
          values(&#8217;myself&#8217;,'yourself&#8217;,default)</p>
<p>done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact Me by Kunal Kumar</title>
		<link>http://blog.sqlauthority.com/contact-me-contact-pinaldave/#comment-44338</link>
		<dc:creator>Kunal Kumar</dc:creator>
		<pubDate>Fri, 21 Nov 2008 16:37:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?page_id=705#comment-44338</guid>
		<description>HI PINAL,

There is a very little Query i want to launch SQL Profiler from batch file.
the command i use is 
@ECHO OFF
profiler90 /Sserver /Uuser /Ppassword /Tx

When ever i pass values &#38; run it from batch file it launches the profiler successfully. But i need to open more than one servers in same profiler window is it possible to open multiple traces in single profiler window by the same command.

Kunal</description>
		<content:encoded><![CDATA[<p>HI PINAL,</p>
<p>There is a very little Query i want to launch SQL Profiler from batch file.<br />
the command i use is<br />
@ECHO OFF<br />
profiler90 /Sserver /Uuser /Ppassword /Tx</p>
<p>When ever i pass values &amp; run it from batch file it launches the profiler successfully. But i need to open more than one servers in same profiler window is it possible to open multiple traces in single profiler window by the same command.</p>
<p>Kunal</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - SELECT 1 vs SELECT * - An Interesting Observation by Lutz Mueller</title>
		<link>http://blog.sqlauthority.com/2008/02/26/sql-server-select-1-vs-select-an-interesting-observation/#comment-44337</link>
		<dc:creator>Lutz Mueller</dc:creator>
		<pubDate>Fri, 21 Nov 2008 15:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=519#comment-44337</guid>
		<description>Hi Pinal,

I'm wondering what test conditions you used...

The other day I had a performance issue with a proceudre that included a statement like

IF NOT EXISTS (SELECT * FROM view WHERE condition)

The view itself based on two tables withe several 10-thousand rows in one and several million in the other (as to my best knowledge properly joined and indexed using information from STATISTICS XML). The SELECT statement above would return approx. 1 million rows.

When I changed it to SELECT 1, performance increased significantly.

My explanation (at least to myself) goes a little more in direction of boolean logic:

The NOT EXISTS statement becomes FALSE performing the following tasks:
SELECT * -&#62; grab all the data and if there are any drop them and return FALSE
SELECT 1 -&#62; try to grab the first row and if you find one single row return FALSE, no matter on how many rows fulfill the WHERE clause

As far as I figured the TRUE statement takes the same time for both, * amd 1, since the resultset is NULL in both cases.

Would you agree with my comment and, if not, retest your code with large tables?

Regards

Lutz</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I&#8217;m wondering what test conditions you used&#8230;</p>
<p>The other day I had a performance issue with a proceudre that included a statement like</p>
<p>IF NOT EXISTS (SELECT * FROM view WHERE condition)</p>
<p>The view itself based on two tables withe several 10-thousand rows in one and several million in the other (as to my best knowledge properly joined and indexed using information from STATISTICS XML). The SELECT statement above would return approx. 1 million rows.</p>
<p>When I changed it to SELECT 1, performance increased significantly.</p>
<p>My explanation (at least to myself) goes a little more in direction of boolean logic:</p>
<p>The NOT EXISTS statement becomes FALSE performing the following tasks:<br />
SELECT * -&gt; grab all the data and if there are any drop them and return FALSE<br />
SELECT 1 -&gt; try to grab the first row and if you find one single row return FALSE, no matter on how many rows fulfill the WHERE clause</p>
<p>As far as I figured the TRUE statement takes the same time for both, * amd 1, since the resultset is NULL in both cases.</p>
<p>Would you agree with my comment and, if not, retest your code with large tables?</p>
<p>Regards</p>
<p>Lutz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - 2005 - Create Script to Copy Database Schema and All The Objects - Stored Procedure, Functions, Triggers, Tables, Views, Constraints and All Other Database Objects by Steve Walker</title>
		<link>http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/#comment-44336</link>
		<dc:creator>Steve Walker</dc:creator>
		<pubDate>Fri, 21 Nov 2008 15:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/#comment-44336</guid>
		<description>Thank you so much!</description>
		<content:encoded><![CDATA[<p>Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - 2005 - Display Fragmentation Information of Data and Indexes of Database Table by Rahul</title>
		<link>http://blog.sqlauthority.com/2008/01/10/sql-server-2005-display-fragmentation-information-of-data-and-indexes-of-database-table/#comment-44335</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Fri, 21 Nov 2008 14:57:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/10/sql-server-2005-display-fragmentation-information-of-data-and-indexes-of-database-table/#comment-44335</guid>
		<description>Hello,
pl any can tell me what is exact justification report for doing defragmentation in sql 2005
i m not understanding the result of showcontig  commands output . it shows Scan Density, Pages plese tell me what is this and how should i know that fragmentation is increases on what factos

pl help
Thanks</description>
		<content:encoded><![CDATA[<p>Hello,<br />
pl any can tell me what is exact justification report for doing defragmentation in sql 2005<br />
i m not understanding the result of showcontig  commands output . it shows Scan Density, Pages plese tell me what is this and how should i know that fragmentation is increases on what factos</p>
<p>pl help<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - 2005 - Display Fragmentation Information of Data and Indexes of Database Table by Rahul</title>
		<link>http://blog.sqlauthority.com/2008/01/10/sql-server-2005-display-fragmentation-information-of-data-and-indexes-of-database-table/#comment-44334</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Fri, 21 Nov 2008 14:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2008/01/10/sql-server-2005-display-fragmentation-information-of-data-and-indexes-of-database-table/#comment-44334</guid>
		<description>Hello,
pl any can tell me what is exact justification report for doing defragmentation in sql 2005
i m and understanding the result of showcontig  commands output . it shows Scan Density, Pages plese tell me what is this and how should i know that fragmentation is increases on what factos

pl help
Thanks</description>
		<content:encoded><![CDATA[<p>Hello,<br />
pl any can tell me what is exact justification report for doing defragmentation in sql 2005<br />
i m and understanding the result of showcontig  commands output . it shows Scan Density, Pages plese tell me what is this and how should i know that fragmentation is increases on what factos</p>
<p>pl help<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact Me by Makarov</title>
		<link>http://blog.sqlauthority.com/contact-me-contact-pinaldave/#comment-44332</link>
		<dc:creator>Makarov</dc:creator>
		<pubDate>Fri, 21 Nov 2008 12:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?page_id=705#comment-44332</guid>
		<description>Hi Pinal,
i need to learn Mdx
if you have any tutorials or useful links for beginners
please advice
thanks in advance
Makarov</description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
i need to learn Mdx<br />
if you have any tutorials or useful links for beginners<br />
please advice<br />
thanks in advance<br />
Makarov</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - Do Not Store Images in Database - Store Location of Images (URL) by babu</title>
		<link>http://blog.sqlauthority.com/2007/12/13/sql-server-do-not-store-images-in-database-store-location-of-images-url/#comment-44329</link>
		<dc:creator>babu</dc:creator>
		<pubDate>Fri, 21 Nov 2008 12:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/13/sql-server-do-not-store-images-in-database-store-location-of-images-url/#comment-44329</guid>
		<description>I am trying to store the location of the images in the database using VARCHAR datatype instead of any BLOB or other binary datatype.

How I can do this ?

I am using visual studio 2005 VB.net with asp.net to developing the sites.please guide me how to solve.it's urgent</description>
		<content:encoded><![CDATA[<p>I am trying to store the location of the images in the database using VARCHAR datatype instead of any BLOB or other binary datatype.</p>
<p>How I can do this ?</p>
<p>I am using visual studio 2005 VB.net with asp.net to developing the sites.please guide me how to solve.it&#8217;s urgent</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - 2005 List All Tables of Database by paresh13</title>
		<link>http://blog.sqlauthority.com/2007/06/26/sql-server-2005-list-all-tables-of-database/#comment-44328</link>
		<dc:creator>paresh13</dc:creator>
		<pubDate>Fri, 21 Nov 2008 11:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/26/sql-server-2005-list-all-tables-of-database/#comment-44328</guid>
		<description>Hi,

I want to list of my database  tables' column name with their Datatype.

Can you tell me how to do that?

Regards,

Pooja</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to list of my database  tables&#8217; column name with their Datatype.</p>
<p>Can you tell me how to do that?</p>
<p>Regards,</p>
<p>Pooja</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - 2005 - Create Script to Copy Database Schema and All The Objects - Stored Procedure, Functions, Triggers, Tables, Views, Constraints and All Other Database Objects by Manish</title>
		<link>http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/#comment-44326</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Fri, 21 Nov 2008 11:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/#comment-44326</guid>
		<description>Yeah Hema, you can do it either by using powershell, or by using the SMO object.

Thanks
Manish</description>
		<content:encoded><![CDATA[<p>Yeah Hema, you can do it either by using powershell, or by using the SMO object.</p>
<p>Thanks<br />
Manish</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQLAuthority News - Author Visit - South Asia MVP Open Day 2008 - Goa - Day 1 by pinaldave</title>
		<link>http://blog.sqlauthority.com/2008/11/16/sqlauthority-news-author-visit-south-asia-mvp-open-day-2008-goa-day-1/#comment-44325</link>
		<dc:creator>pinaldave</dc:creator>
		<pubDate>Fri, 21 Nov 2008 08:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1510#comment-44325</guid>
		<description>Suprotim,

Thank you very much for your kind words. You are the good person yourself and have given me good insight in web development. 

I read your LINQ articles and are very good. :)

Regards,
Pinal</description>
		<content:encoded><![CDATA[<p>Suprotim,</p>
<p>Thank you very much for your kind words. You are the good person yourself and have given me good insight in web development. </p>
<p>I read your LINQ articles and are very good. :)</p>
<p>Regards,<br />
Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database by Suprotim</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-44324</link>
		<dc:creator>Suprotim</dc:creator>
		<pubDate>Fri, 21 Nov 2008 07:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-44324</guid>
		<description>I wrote a script some time back to show all the Views and UDF's using different techniques:

http://www.sqlservercurry.com/2008/05/find-out-all-views-in-database-using.html

http://www.sqlservercurry.com/2008/05/find-all-user-defined-functions-in.html</description>
		<content:encoded><![CDATA[<p>I wrote a script some time back to show all the Views and UDF&#8217;s using different techniques:</p>
<p><a href="http://www.sqlservercurry.com/2008/05/find-out-all-views-in-database-using.html" rel="nofollow">http://www.sqlservercurry.com/2008/05/find-out-all-views-in-database-using.html</a></p>
<p><a href="http://www.sqlservercurry.com/2008/05/find-all-user-defined-functions-in.html" rel="nofollow">http://www.sqlservercurry.com/2008/05/find-all-user-defined-functions-in.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQLAuthority News - Author Visit - South Asia MVP Open Day 2008 - Goa - Day 1 by Suprotim</title>
		<link>http://blog.sqlauthority.com/2008/11/16/sqlauthority-news-author-visit-south-asia-mvp-open-day-2008-goa-day-1/#comment-44323</link>
		<dc:creator>Suprotim</dc:creator>
		<pubDate>Fri, 21 Nov 2008 07:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1510#comment-44323</guid>
		<description>Well that's me in the last pic..We had a blast off..Got to know Pinal well..

Something @Pinal

Pinal is a great guy! We did not know each other before we met and have become pals now..

Not many of you would know that this serious DBA can  tickle your funny bone through his jokes and his hard hitting punch lines..He is full of energy and becomes uncontrollable after he has had his Energy drink! (keep guessing which one). 

It's fun being an MVP!! 

Learn how you readers can also become eligible to join this priviliged group by checking out this link.. http://mvp.support.microsoft.com/gp/mvpfaqs</description>
		<content:encoded><![CDATA[<p>Well that&#8217;s me in the last pic..We had a blast off..Got to know Pinal well..</p>
<p>Something @Pinal</p>
<p>Pinal is a great guy! We did not know each other before we met and have become pals now..</p>
<p>Not many of you would know that this serious DBA can  tickle your funny bone through his jokes and his hard hitting punch lines..He is full of energy and becomes uncontrollable after he has had his Energy drink! (keep guessing which one). </p>
<p>It&#8217;s fun being an MVP!! </p>
<p>Learn how you readers can also become eligible to join this priviliged group by checking out this link.. <a href="http://mvp.support.microsoft.com/gp/mvpfaqs" rel="nofollow">http://mvp.support.microsoft.com/gp/mvpfaqs</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database by Christoph Krapp</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-44322</link>
		<dc:creator>Christoph Krapp</dc:creator>
		<pubDate>Fri, 21 Nov 2008 07:01:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-44322</guid>
		<description>Hi Pinal

thanks for your Script.

When I copy and paste your various sample codes, i have always a problem with the quotation marks that you are using.
I´m forced to seek and replace them all.
For example  

WHERE type = ‘P’    --- doesn´t work

WHERE type = 'P'    --- OK


Maybe you could change that in your editor settings.
Christoph</description>
		<content:encoded><![CDATA[<p>Hi Pinal</p>
<p>thanks for your Script.</p>
<p>When I copy and paste your various sample codes, i have always a problem with the quotation marks that you are using.<br />
I´m forced to seek and replace them all.<br />
For example  </p>
<p>WHERE type = ‘P’    &#8212; doesn´t work</p>
<p>WHERE type = &#8216;P&#8217;    &#8212; OK</p>
<p>Maybe you could change that in your editor settings.<br />
Christoph</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER - Delete Duplicate Records - Rows by Srinivas Asapu</title>
		<link>http://blog.sqlauthority.com/2007/03/01/sql-server-delete-duplicate-records-rows/#comment-44321</link>
		<dc:creator>Srinivas Asapu</dc:creator>
		<pubDate>Fri, 21 Nov 2008 06:48:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/01/delete-duplicate-records/#comment-44321</guid>
		<description>Hi Ravichandra,

Use the following code. Replace COLUMN_LIST with column names. Let me know if you have any issues.

SELECT COLUMN_LIST FROM (SELECT DISTINCT 'U' AS SETNAME, 
* FROM REGION1.TABLE WHERE POST_KNTNR = '6731'
AND SLSKB_INIT = 'NL'
AND VAKD = 'DKK'
AND YEAR (MDTGL_TMSTM) = 2008
UNION ALL
SELECT DISTINCT NULL, * FROM
REGION2.TABLE
WHERE POST_KNTNR = '6731'
AND SLSKB_INIT = 'NL'
AND VAKD = 'DKK'
AND YEAR (MDTGL_TMSTM) = 2008) A
GROUP BY COLUMN_LIST 
HAVING COUNT (*) = 1 AND MAX (SETNAME) = 'U'</description>
		<content:encoded><![CDATA[<p>Hi Ravichandra,</p>
<p>Use the following code. Replace COLUMN_LIST with column names. Let me know if you have any issues.</p>
<p>SELECT COLUMN_LIST FROM (SELECT DISTINCT &#8216;U&#8217; AS SETNAME,<br />
* FROM REGION1.TABLE WHERE POST_KNTNR = &#8216;6731&#8242;<br />
AND SLSKB_INIT = &#8216;NL&#8217;<br />
AND VAKD = &#8216;DKK&#8217;<br />
AND YEAR (MDTGL_TMSTM) = 2008<br />
UNION ALL<br />
SELECT DISTINCT NULL, * FROM<br />
REGION2.TABLE<br />
WHERE POST_KNTNR = &#8216;6731&#8242;<br />
AND SLSKB_INIT = &#8216;NL&#8217;<br />
AND VAKD = &#8216;DKK&#8217;<br />
AND YEAR (MDTGL_TMSTM) = 2008) A<br />
GROUP BY COLUMN_LIST<br />
HAVING COUNT (*) = 1 AND MAX (SETNAME) = &#8216;U&#8217;</p>
]]></content:encoded>
	</item>
</channel>
</rss>