<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Inviting Ideas for SQL in Sixty Seconds &#8211; 12/12/12</title>
	<atom:link href="http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sat, 25 May 2013 01:31:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: harsh</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-405233</link>
		<dc:creator><![CDATA[harsh]]></dc:creator>
		<pubDate>Tue, 08 Jan 2013 13:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-405233</guid>
		<description><![CDATA[Belated, but I am submitting some of my suggestions as mentioned in above comment. These could be useful to some beginner/intermediate users.
	1. Change Connection in Query Window :  In SSMS, We can change DB by use command or DB Drop-down from SQL  Editor Drop-down. But, for Change of DB Server/Instance in connection , &quot;Change Connection&quot; window can be opened by Query Menu /Context Menu -&gt; Connection-&gt;Change Connection
	2. Import /Export Environment Settings: New feature in SSMS 2012. Backup of Environment Settings can be taken and restored.
	3. Writing a CLR Function . Based on your earlier post http://blog.sqlauthority.com/2008/10/19/sql-server-introduction-to-clr-simple-example-of-clr-stored-procedure/]]></description>
		<content:encoded><![CDATA[<p>Belated, but I am submitting some of my suggestions as mentioned in above comment. These could be useful to some beginner/intermediate users.<br />
	1. Change Connection in Query Window :  In SSMS, We can change DB by use command or DB Drop-down from SQL  Editor Drop-down. But, for Change of DB Server/Instance in connection , &#8220;Change Connection&#8221; window can be opened by Query Menu /Context Menu -&gt; Connection-&gt;Change Connection<br />
	2. Import /Export Environment Settings: New feature in SSMS 2012. Backup of Environment Settings can be taken and restored.<br />
	3. Writing a CLR Function . Based on your earlier post <a href="http://blog.sqlauthority.com/2008/10/19/sql-server-introduction-to-clr-simple-example-of-clr-stored-procedure/" rel="nofollow">http://blog.sqlauthority.com/2008/10/19/sql-server-introduction-to-clr-simple-example-of-clr-stored-procedure/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nirmal</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-397062</link>
		<dc:creator><![CDATA[Nirmal]]></dc:creator>
		<pubDate>Fri, 21 Dec 2012 09:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-397062</guid>
		<description><![CDATA[Here a Tip, 

If you ever want to use TOP keyword with dynamic number
DECLARE @count int
SET @count=10

SELECT TOP @count from Table

This will throw error

Try with 
SELECT TOP (@count) from Table]]></description>
		<content:encoded><![CDATA[<p>Here a Tip, </p>
<p>If you ever want to use TOP keyword with dynamic number<br />
DECLARE @count int<br />
SET @count=10</p>
<p>SELECT TOP @count from Table</p>
<p>This will throw error</p>
<p>Try with<br />
SELECT TOP (@count) from Table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raksha Hegde</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-392640</link>
		<dc:creator><![CDATA[Raksha Hegde]]></dc:creator>
		<pubDate>Thu, 13 Dec 2012 17:28:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-392640</guid>
		<description><![CDATA[Hello Pinal,

Belated Anniversary wishes to both of you :)

Please find below one of the concept which I found to be very useful in one of our requirement.

When a table is having unique index and if an attempt is made to insert duplicate data an error is thrown. Conventional method to insert data into such table from another table is to either use &quot;NOT IN&quot; or &quot;NOT EXISTS&quot;. But if the table, to which data insertion has to be made, has billions of records, there may be performance issues. 
In such cases &quot;IGNORE_DUP_KEY&quot; property can be used. By default, for a unique index the property is set to OFF. When this property is set to ON, it will issue a warning message when a duplicate key is inserted and the particular row is ignored and also continues with the transaction. There was a good performance by using this property since %age of duplicates were less]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>Belated Anniversary wishes to both of you :)</p>
<p>Please find below one of the concept which I found to be very useful in one of our requirement.</p>
<p>When a table is having unique index and if an attempt is made to insert duplicate data an error is thrown. Conventional method to insert data into such table from another table is to either use &#8220;NOT IN&#8221; or &#8220;NOT EXISTS&#8221;. But if the table, to which data insertion has to be made, has billions of records, there may be performance issues.<br />
In such cases &#8220;IGNORE_DUP_KEY&#8221; property can be used. By default, for a unique index the property is set to OFF. When this property is set to ON, it will issue a warning message when a duplicate key is inserted and the particular row is ignored and also continues with the transaction. There was a good performance by using this property since %age of duplicates were less</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harsh</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391862</link>
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 11:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391862</guid>
		<description><![CDATA[Hello ,

Happy Aniversary to both of you!

My first suggestion is not related to SQL.
As you have earlier recored one video regarding how you record these videos. My Suggestion is related to this. Can you record a video about how you capture this image?  (As you already told, this is not photoshoped or modified) :)

Well, I will submit list of suggestion later after checking existing videos. (Related to SQL, this time :) )]]></description>
		<content:encoded><![CDATA[<p>Hello ,</p>
<p>Happy Aniversary to both of you!</p>
<p>My first suggestion is not related to SQL.<br />
As you have earlier recored one video regarding how you record these videos. My Suggestion is related to this. Can you record a video about how you capture this image?  (As you already told, this is not photoshoped or modified) :)</p>
<p>Well, I will submit list of suggestion later after checking existing videos. (Related to SQL, this time :) )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nachi</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391820</link>
		<dc:creator><![CDATA[Nachi]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 09:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391820</guid>
		<description><![CDATA[Hi Pinal,

Recently came to know very interesting bit when we do the &quot;select count(*) from table&quot;. Optimiser select very interesting plans when we have index on table and there there is no index.

I always thought it will scan the table but I was wrong it does index scan when have index on table.

I thought it is very interesting and hope you feel the same would share it.Please let me know if need I can send you demo code.

Anyway Happy Wedding Anniversary.

Thanks
Nachi]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Recently came to know very interesting bit when we do the &#8220;select count(*) from table&#8221;. Optimiser select very interesting plans when we have index on table and there there is no index.</p>
<p>I always thought it will scan the table but I was wrong it does index scan when have index on table.</p>
<p>I thought it is very interesting and hope you feel the same would share it.Please let me know if need I can send you demo code.</p>
<p>Anyway Happy Wedding Anniversary.</p>
<p>Thanks<br />
Nachi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikael Krief</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391789</link>
		<dc:creator><![CDATA[Mikael Krief]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 09:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391789</guid>
		<description><![CDATA[Hello Pinal,

    Here my two suggestions for videos SQL in sixty seconds.

    1- Get the max between multiple columns
    exemple , my table contain 4 columns Id, Date1, Date2 and Date3 and i want get the Max bettween then.

    I find solution very simple , do this request

    SELECT id, (SELECT MAX([Value]) FROM
    ( SELECT Date1 AS [Value]
    UNION ALL
    SELECT Date2
    UNION ALL
    SELECT Date3
    ) AS UnionSetMax
    ) AS MaxDate

    The column MaxDate Return the Max date between date1, date2 and date3

    2- Planifie Backup database with Script and Task Sckeduler

    create sql file “scriptbackup.sql” with content this cript
    Backup Database MyDatabaseTo Disk = ‘E:\Backup_Bdd\MyDatabase.bak’

    create file .bat “lancherbackup.bat” with content this command
    sqlcmd -E -S [Sever] -i E:\Backup_Bdd\scriptbackup.sql

    with the task sckeduler planifie the execution of the lancherbackup.bat.

thanks]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>    Here my two suggestions for videos SQL in sixty seconds.</p>
<p>    1- Get the max between multiple columns<br />
    exemple , my table contain 4 columns Id, Date1, Date2 and Date3 and i want get the Max bettween then.</p>
<p>    I find solution very simple , do this request</p>
<p>    SELECT id, (SELECT MAX([Value]) FROM<br />
    ( SELECT Date1 AS [Value]<br />
    UNION ALL<br />
    SELECT Date2<br />
    UNION ALL<br />
    SELECT Date3<br />
    ) AS UnionSetMax<br />
    ) AS MaxDate</p>
<p>    The column MaxDate Return the Max date between date1, date2 and date3</p>
<p>    2- Planifie Backup database with Script and Task Sckeduler</p>
<p>    create sql file “scriptbackup.sql” with content this cript<br />
    Backup Database MyDatabaseTo Disk = ‘E:\Backup_Bdd\MyDatabase.bak’</p>
<p>    create file .bat “lancherbackup.bat” with content this command<br />
    sqlcmd -E -S [Sever] -i E:\Backup_Bdd\scriptbackup.sql</p>
<p>    with the task sckeduler planifie the execution of the lancherbackup.bat.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikael Krief</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391788</link>
		<dc:creator><![CDATA[Mikael Krief]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 09:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391788</guid>
		<description><![CDATA[Happy Wedding Anniversary]]></description>
		<content:encoded><![CDATA[<p>Happy Wedding Anniversary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikael Krief</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391782</link>
		<dc:creator><![CDATA[Mikael Krief]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 08:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391782</guid>
		<description><![CDATA[Hello Pinal,

Here my two suggestions for videos SQL in sixty seconds.

1- Get the max between multiple columns
exemple , my table contain 4 columns Id, Date1, Date2 and Date3 and i want get the Max bettween then.

I find solution very simple , do this request

SELECT id, (SELECT MAX([Value]) FROM 
( SELECT Date1 AS [Value]
   UNION ALL
  SELECT Date2
  UNION ALL
  SELECT Date3
 ) AS UnionSetMax
 ) AS MaxDate


The column MaxDate Return the Max date between date1, date2 and date3


2- Backup database with Script and Task Sckeduler

create sql file &quot;scriptbackup.sql&quot; with content this cript
Backup Database MyDatabaseTo Disk = &#039;E:\Backup_Bdd\MyDatabase.bak&#039;

create file .bat &quot;lancherbackup.bat&quot; with content this command
sqlcmd -E -S [Sever] -i E:\Backup_Bdd\scriptbackup.sql]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>Here my two suggestions for videos SQL in sixty seconds.</p>
<p>1- Get the max between multiple columns<br />
exemple , my table contain 4 columns Id, Date1, Date2 and Date3 and i want get the Max bettween then.</p>
<p>I find solution very simple , do this request</p>
<p>SELECT id, (SELECT MAX([Value]) FROM<br />
( SELECT Date1 AS [Value]<br />
   UNION ALL<br />
  SELECT Date2<br />
  UNION ALL<br />
  SELECT Date3<br />
 ) AS UnionSetMax<br />
 ) AS MaxDate</p>
<p>The column MaxDate Return the Max date between date1, date2 and date3</p>
<p>2- Backup database with Script and Task Sckeduler</p>
<p>create sql file &#8220;scriptbackup.sql&#8221; with content this cript<br />
Backup Database MyDatabaseTo Disk = &#8216;E:\Backup_Bdd\MyDatabase.bak&#8217;</p>
<p>create file .bat &#8220;lancherbackup.bat&#8221; with content this command<br />
sqlcmd -E -S [Sever] -i E:\Backup_Bdd\scriptbackup.sql</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd Burrell</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391777</link>
		<dc:creator><![CDATA[Todd Burrell]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 08:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391777</guid>
		<description><![CDATA[Happy anniversary, Pinal.  How about quick example of using triggers to update data in one table after another table is updated.]]></description>
		<content:encoded><![CDATA[<p>Happy anniversary, Pinal.  How about quick example of using triggers to update data in one table after another table is updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shishir</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391765</link>
		<dc:creator><![CDATA[shishir]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 08:16:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391765</guid>
		<description><![CDATA[Hi Pinal,

Wish you a very happy wedding anniversary. 

Best Regards..]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Wish you a very happy wedding anniversary. </p>
<p>Best Regards..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vincyf1</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391677</link>
		<dc:creator><![CDATA[vincyf1]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 05:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391677</guid>
		<description><![CDATA[Hi Pinal,

Happy Wedding Anniversary! :)

Please find below one of the ideas on which possibly many SQL Server beginners have issues with -

Fixing Orphaned users after Restore on New instance.

Scenario: During Upgrades or Migrations, often we would have to take backups of the current Databases and Restore the same on the New Instance. When some of the beginners do that, they often forget or are not aware of the fact that there may be users which existed in the previous instance and they do not exist on the new instance.

A quick video on how to fix these orphaned users would be a great tutorial that would help them keep that in mind. :)

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Happy Wedding Anniversary! :)</p>
<p>Please find below one of the ideas on which possibly many SQL Server beginners have issues with -</p>
<p>Fixing Orphaned users after Restore on New instance.</p>
<p>Scenario: During Upgrades or Migrations, often we would have to take backups of the current Databases and Restore the same on the New Instance. When some of the beginners do that, they often forget or are not aware of the fact that there may be users which existed in the previous instance and they do not exist on the new instance.</p>
<p>A quick video on how to fix these orphaned users would be a great tutorial that would help them keep that in mind. :)</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalyanasundaram.K</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391649</link>
		<dc:creator><![CDATA[Kalyanasundaram.K]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 04:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391649</guid>
		<description><![CDATA[Hi Pinal,

  First of all Wedding day wishes to my SQL Guru. Once again we check with all the existing SQL sixty video and then suggest a topic with descriptive.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>  First of all Wedding day wishes to my SQL Guru. Once again we check with all the existing SQL sixty video and then suggest a topic with descriptive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinay B Hiraskar</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391626</link>
		<dc:creator><![CDATA[Vinay B Hiraskar]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 03:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391626</guid>
		<description><![CDATA[Hoping that the love you shared years ago
Is still as strong today as it was
then Bringing you much joy, love and happiness
To celebrate again.
Happy Anniversary :)]]></description>
		<content:encoded><![CDATA[<p>Hoping that the love you shared years ago<br />
Is still as strong today as it was<br />
then Bringing you much joy, love and happiness<br />
To celebrate again.<br />
Happy Anniversary :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vakul Kumar More</title>
		<link>http://blog.sqlauthority.com/2012/12/12/sql-server-inviting-ideas-for-sql-in-sixty-seconds-121212/#comment-391622</link>
		<dc:creator><![CDATA[Vakul Kumar More]]></dc:creator>
		<pubDate>Wed, 12 Dec 2012 03:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21956#comment-391622</guid>
		<description><![CDATA[Hello Pinal,

Let me take the privilege of commenting first and suggest few topics for SQL in sixty seconds.

Topics :
 1. Working on SQL Profiler trace file
 2. Explaining common types of deadlock 
 3. Monitoring Tempdb space
 4. Deadlock Graph event in SQL Trace 
 5. How to view the SQL Server Error Log 
 6. Detecting Memory Pressures
 7. Dynamic Management Views 

Wishing you a Happy Anniversary. 

-Vakul More.]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>Let me take the privilege of commenting first and suggest few topics for SQL in sixty seconds.</p>
<p>Topics :<br />
 1. Working on SQL Profiler trace file<br />
 2. Explaining common types of deadlock<br />
 3. Monitoring Tempdb space<br />
 4. Deadlock Graph event in SQL Trace<br />
 5. How to view the SQL Server Error Log<br />
 6. Detecting Memory Pressures<br />
 7. Dynamic Management Views </p>
<p>Wishing you a Happy Anniversary. </p>
<p>-Vakul More.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
