<?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; SmallDateTime and Precision &#8211; A Continuous Confusion</title>
	<atom:link href="http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-302786</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 18 Jun 2012 11:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-302786</guid>
		<description><![CDATA[Start reading this blog. Also visit forums]]></description>
		<content:encoded><![CDATA[<p>Start reading this blog. Also visit forums</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanya</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-296142</link>
		<dc:creator><![CDATA[Sanya]]></dc:creator>
		<pubDate>Thu, 07 Jun 2012 08:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-296142</guid>
		<description><![CDATA[hi Pinal ,

I am btech 2011 passout. I am a fresher  and wanted to have a great command in sql server . I know the basic commands. But could you please suggest me that from where i should start...]]></description>
		<content:encoded><![CDATA[<p>hi Pinal ,</p>
<p>I am btech 2011 passout. I am a fresher  and wanted to have a great command in sql server . I know the basic commands. But could you please suggest me that from where i should start&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arif</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-293365</link>
		<dc:creator><![CDATA[arif]]></dc:creator>
		<pubDate>Sun, 03 Jun 2012 16:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-293365</guid>
		<description><![CDATA[Hi pinal,

İ cant see pics when i use my smartphone.]]></description>
		<content:encoded><![CDATA[<p>Hi pinal,</p>
<p>İ cant see pics when i use my smartphone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jv cs</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-291713</link>
		<dc:creator><![CDATA[jv cs]]></dc:creator>
		<pubDate>Thu, 31 May 2012 17:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-291713</guid>
		<description><![CDATA[Can anyone help query optimizing techniques pdf with examples.....
Thanks]]></description>
		<content:encoded><![CDATA[<p>Can anyone help query optimizing techniques pdf with examples&#8230;..<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL Addictor</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-291579</link>
		<dc:creator><![CDATA[SQL Addictor]]></dc:creator>
		<pubDate>Thu, 31 May 2012 13:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-291579</guid>
		<description><![CDATA[I figured one thing that the ordering of a field having same value, gets the results of the order the first column having diff valeu]]></description>
		<content:encoded><![CDATA[<p>I figured one thing that the ordering of a field having same value, gets the results of the order the first column having diff valeu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Michalicek</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-287179</link>
		<dc:creator><![CDATA[Mike Michalicek]]></dc:creator>
		<pubDate>Tue, 22 May 2012 12:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-287179</guid>
		<description><![CDATA[Nice post and tricky. below is the only solution I could come up with.

CREATE TABLE #temp
(name VARCHAR(100),registered smalldatetime)
GO
DECLARE @test smalldatetime
SET @test=GETDATE()
INSERT INTO #temp
VALUES (&#039;Value1&#039;,@test)
INSERT INTO #temp
VALUES (&#039;Value0&#039;,@test)
INSERT INTO #temp
VALUES (&#039;Value2&#039;,@test)
GO
;With CTE AS (
Select name, registered, ROW_NUMBER() OVER(ORDER BY registered DESC) AS RowNumber
From   #temp)
SELECT name, registered
FROM CTE a
ORDER BY RowNumber Desc
GO
DROP TABLE #temp
GO]]></description>
		<content:encoded><![CDATA[<p>Nice post and tricky. below is the only solution I could come up with.</p>
<p>CREATE TABLE #temp<br />
(name VARCHAR(100),registered smalldatetime)<br />
GO<br />
DECLARE @test smalldatetime<br />
SET @test=GETDATE()<br />
INSERT INTO #temp<br />
VALUES (&#8216;Value1&#8242;,@test)<br />
INSERT INTO #temp<br />
VALUES (&#8216;Value0&#8242;,@test)<br />
INSERT INTO #temp<br />
VALUES (&#8216;Value2&#8242;,@test)<br />
GO<br />
;With CTE AS (<br />
Select name, registered, ROW_NUMBER() OVER(ORDER BY registered DESC) AS RowNumber<br />
From   #temp)<br />
SELECT name, registered<br />
FROM CTE a<br />
ORDER BY RowNumber Desc<br />
GO<br />
DROP TABLE #temp<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandip Pani</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-287063</link>
		<dc:creator><![CDATA[Sandip Pani]]></dc:creator>
		<pubDate>Tue, 22 May 2012 06:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-287063</guid>
		<description><![CDATA[Yesterday Raghavendra called me and asked this question. My initial thought was also to make schema changes but the requirement is without making schema changes how can you do this. He was telling the database is in SQL Server 2000. I couldn&#039;t find any solution without making any schema changes.]]></description>
		<content:encoded><![CDATA[<p>Yesterday Raghavendra called me and asked this question. My initial thought was also to make schema changes but the requirement is without making schema changes how can you do this. He was telling the database is in SQL Server 2000. I couldn&#8217;t find any solution without making any schema changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-287056</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Tue, 22 May 2012 06:20:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-287056</guid>
		<description><![CDATA[Raghavendra you will still end up on the same situation. 

Just try to create the index - which I demonstrated in my blog post on it and you will get incorrect Identity solution. 

I think I see no solution without Schema change.]]></description>
		<content:encoded><![CDATA[<p>Raghavendra you will still end up on the same situation. </p>
<p>Just try to create the index &#8211; which I demonstrated in my blog post on it and you will get incorrect Identity solution. </p>
<p>I think I see no solution without Schema change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Chauhan</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-287047</link>
		<dc:creator><![CDATA[Amit Chauhan]]></dc:creator>
		<pubDate>Tue, 22 May 2012 05:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-287047</guid>
		<description><![CDATA[SmallDatetime converts seconds value to its nearest Minute value. As a Result seconds value is always 0. Without changing the schema, i don&#039;t think this will be shown as required output.]]></description>
		<content:encoded><![CDATA[<p>SmallDatetime converts seconds value to its nearest Minute value. As a Result seconds value is always 0. Without changing the schema, i don&#8217;t think this will be shown as required output.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghavendra</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-287046</link>
		<dc:creator><![CDATA[Raghavendra]]></dc:creator>
		<pubDate>Tue, 22 May 2012 05:50:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-287046</guid>
		<description><![CDATA[Hi Pinal,

Thanks for posting..  how abt below solution?


create table #temp
(
name varchar(100),
registered smalldatetime
)

declare @test smalldatetime
set @test=getdate()

insert into #temp
values (&#039;Raghav1&#039;,@test)

insert into #temp
values (&#039;Raghav2&#039;,@test)

Select IDENTITY(int,1,1) AS [Row Number]
, name,registered 
INTO #Temp2
from #temp
-- [edited]

SELECT *
FROM #Temp2 order by registered desc,[Row Number] Desc

Regards,
Raghavendra SK]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Thanks for posting..  how abt below solution?</p>
<p>create table #temp<br />
(<br />
name varchar(100),<br />
registered smalldatetime<br />
)</p>
<p>declare @test smalldatetime<br />
set @test=getdate()</p>
<p>insert into #temp<br />
values (&#8216;Raghav1&#8242;,@test)</p>
<p>insert into #temp<br />
values (&#8216;Raghav2&#8242;,@test)</p>
<p>Select IDENTITY(int,1,1) AS [Row Number]<br />
, name,registered<br />
INTO #Temp2<br />
from #temp<br />
&#8211; [edited]</p>
<p>SELECT *<br />
FROM #Temp2 order by registered desc,[Row Number] Desc</p>
<p>Regards,<br />
Raghavendra SK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-287043</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Tue, 22 May 2012 05:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-287043</guid>
		<description><![CDATA[Point to be noted is that there is no guarantee with this solution and that is why I have written that NOT solution.]]></description>
		<content:encoded><![CDATA[<p>Point to be noted is that there is no guarantee with this solution and that is why I have written that NOT solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar Harsh</title>
		<link>http://blog.sqlauthority.com/2012/05/22/sql-server-smalldatetime-and-precision-a-continuous-confusion/#comment-287027</link>
		<dc:creator><![CDATA[Kumar Harsh]]></dc:creator>
		<pubDate>Tue, 22 May 2012 04:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=18864#comment-287027</guid>
		<description><![CDATA[if primary key is created at the time of creating table then result is again same.

CREATE TABLE #temp
(name VARCHAR(100) NOT NULL primary key,registered smalldatetime)
GO

Why ?]]></description>
		<content:encoded><![CDATA[<p>if primary key is created at the time of creating table then result is again same.</p>
<p>CREATE TABLE #temp<br />
(name VARCHAR(100) NOT NULL primary key,registered smalldatetime)<br />
GO</p>
<p>Why ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
