<?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; 2008 &#8211; New DataTypes DATE and TIME</title>
	<atom:link href="http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Wed, 22 May 2013 19:03:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #009 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-400667</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #009 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 29 Dec 2012 01:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-400667</guid>
		<description><![CDATA[[...] SQL SERVER 2008 – New DataTypes DATE and TIME [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER 2008 – New DataTypes DATE and TIME [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-172792</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 28 Sep 2011 11:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-172792</guid>
		<description><![CDATA[Make sure the compatibility mode is set to 100. Also refer this
http://beyondrelational.com/blogs/madhivanan/archive/2009/01/05/compatibility-level-of-a-database.aspx]]></description>
		<content:encoded><![CDATA[<p>Make sure the compatibility mode is set to 100. Also refer this<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2009/01/05/compatibility-level-of-a-database.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2009/01/05/compatibility-level-of-a-database.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Babu</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-172711</link>
		<dc:creator><![CDATA[Babu]]></dc:creator>
		<pubDate>Wed, 28 Sep 2011 05:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-172711</guid>
		<description><![CDATA[When i am executing the below query in SQL server 2008, i am getting an error message

DECLARE @CurrentDate AS DATE  
 
 SET @CurrentDate = CAST(GETDATE() AS DATE) 

Error messae:
Msg 2715, Level 16, State 3, Line 3
Column, parameter, or variable #1: Cannot find data type DATE.
Parameter or variable &#039;@CurrentDate&#039; has an invalid data type.]]></description>
		<content:encoded><![CDATA[<p>When i am executing the below query in SQL server 2008, i am getting an error message</p>
<p>DECLARE @CurrentDate AS DATE  </p>
<p> SET @CurrentDate = CAST(GETDATE() AS DATE) </p>
<p>Error messae:<br />
Msg 2715, Level 16, State 3, Line 3<br />
Column, parameter, or variable #1: Cannot find data type DATE.<br />
Parameter or variable &#8216;@CurrentDate&#8217; has an invalid data type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramesh</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-94999</link>
		<dc:creator><![CDATA[ramesh]]></dc:creator>
		<pubDate>Fri, 22 Oct 2010 04:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-94999</guid>
		<description><![CDATA[i have table when i entered query in sql 2000.i got error message date data type can not find what can i do]]></description>
		<content:encoded><![CDATA[<p>i have table when i entered query in sql 2000.i got error message date data type can not find what can i do</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – DATE and TIME in SQL Server 2008 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-73327</link>
		<dc:creator><![CDATA[SQL SERVER – DATE and TIME in SQL Server 2008 Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Thu, 27 May 2010 01:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-73327</guid>
		<description><![CDATA[[...] 27, 2010 by pinaldave    I was thinking about DATE and TIME datatypes in SQL Server 2008. I earlier wrote about the about best practices of the same. Recently I had written one of the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 27, 2010 by pinaldave    I was thinking about DATE and TIME datatypes in SQL Server 2008. I earlier wrote about the about best practices of the same. Recently I had written one of the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - Retrieve - Select Only Date Part From DateTime - Best Practice - Part 2 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-47514</link>
		<dc:creator><![CDATA[SQL SERVER - Retrieve - Select Only Date Part From DateTime - Best Practice - Part 2 Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Thu, 26 Feb 2009 12:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-47514</guid>
		<description><![CDATA[[...] If you are using SQL Server 2008 it has new DATE datatype which does not have time part. I suggest to use DATE datatype or TIME datatype for users of SQL Server 2008. Read more SQL SERVER - 2008 - New DataTypes DATE and TIME. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] If you are using SQL Server 2008 it has new DATE datatype which does not have time part. I suggest to use DATE datatype or TIME datatype for users of SQL Server 2008. Read more SQL SERVER &#8211; 2008 &#8211; New DataTypes DATE and TIME. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vani</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-37845</link>
		<dc:creator><![CDATA[vani]]></dc:creator>
		<pubDate>Mon, 12 May 2008 21:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-37845</guid>
		<description><![CDATA[i got it fixed]]></description>
		<content:encoded><![CDATA[<p>i got it fixed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vani</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-37843</link>
		<dc:creator><![CDATA[vani]]></dc:creator>
		<pubDate>Mon, 12 May 2008 21:10:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-37843</guid>
		<description><![CDATA[HI

Above query is throughing the below error
Please guide on the data types for the date

Msg 2715, Level 16, State 3, Line 1
Column or parameter #-1: Cannot find data type DATE.
Parameter &#039;@Date&#039; has an invalid data type.]]></description>
		<content:encoded><![CDATA[<p>HI</p>
<p>Above query is throughing the below error<br />
Please guide on the data types for the date</p>
<p>Msg 2715, Level 16, State 3, Line 1<br />
Column or parameter #-1: Cannot find data type DATE.<br />
Parameter &#8216;@Date&#8217; has an invalid data type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fábio Passoumidis</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-33981</link>
		<dc:creator><![CDATA[Fábio Passoumidis]]></dc:creator>
		<pubDate>Tue, 26 Feb 2008 15:11:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-33981</guid>
		<description><![CDATA[Hi people,

I was trying to execute a multiple INSERT to... So, I found a good solution, that&#039;s sample, I&#039;m using an Table Identity Column ID_XX on relationchip see:

- You will test a SELECT using a DECLARE after you INSERT, ex:

INSERT INTO TAB1 (Atribute_1, Atribute_2)
VALUES (&#039;Value 2&#039;, &#039;Value 2&#039;);

-- So on TAB1 the ID_XX is equals 1

declare @ID_XX AS INT SET @ID_XX = (select ID_XX from TAB1 where Atribute_1 = &#039;Value 1&#039; and Atribute_2 = &#039;Value 2&#039;)

IF (@ID_XX) IS NOT NULL

BEGIN

INSERT INTO TAB2 (Atribute_1, Atribute_2)
VALUES(&#039;1&#039;, @ID_XX);



Any doubt?
You may do that a big sequence of insert on many tables using variables


Att.
Fábio Passoumidis]]></description>
		<content:encoded><![CDATA[<p>Hi people,</p>
<p>I was trying to execute a multiple INSERT to&#8230; So, I found a good solution, that&#8217;s sample, I&#8217;m using an Table Identity Column ID_XX on relationchip see:</p>
<p>- You will test a SELECT using a DECLARE after you INSERT, ex:</p>
<p>INSERT INTO TAB1 (Atribute_1, Atribute_2)<br />
VALUES (&#8216;Value 2&#8242;, &#8216;Value 2&#8242;);</p>
<p>&#8211; So on TAB1 the ID_XX is equals 1</p>
<p>declare @ID_XX AS INT SET @ID_XX = (select ID_XX from TAB1 where Atribute_1 = &#8216;Value 1&#8242; and Atribute_2 = &#8216;Value 2&#8242;)</p>
<p>IF (@ID_XX) IS NOT NULL</p>
<p>BEGIN</p>
<p>INSERT INTO TAB2 (Atribute_1, Atribute_2)<br />
VALUES(&#8217;1&#8242;, @ID_XX);</p>
<p>Any doubt?<br />
You may do that a big sequence of insert on many tables using variables</p>
<p>Att.<br />
Fábio Passoumidis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Frizzell</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-33786</link>
		<dc:creator><![CDATA[Aaron Frizzell]]></dc:creator>
		<pubDate>Fri, 15 Feb 2008 16:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-33786</guid>
		<description><![CDATA[Great article.  I have a question, however.  I am building a database at the moment and adding columns just about everyday to handle new situations which arise.

I found this great query which helps document databases.  I have two columns defined in one table in particular which are datetime fields.  Since we don&#039;t have plans to go to SQL 2008 anytime soon, I want to return the time, rather than the datetime and parse it out in C# (lazy?).

So I would like to implement that great query with the time conversion above, but the query says syntax error near &#039;c&#039;.

Hopefully this is just a simple no-brainer.  I&#039;ll keep banging away at it but perhaps somebody could simply look at it and say &#039;Duh, you moron.  You need to do...&#039;

Here we go:

SELECT
column_name= case c.name when &#039;OnlyBuildIfGreaterThan&#039; then
	Convert(varchar(10) c.name, 108)
when &#039;OnlyBuildIfLessThan&#039; then
	Convert(varchar(10) c.name, 108)
else
	c.name
end as c.name
datatype=t.name,
length=c.length
FROM sysobjects o INNER JOIN syscolumns c ON o.id = c.id
inner join systypes t on c.xtype=t.xtype
where o.xtype=&#039;U&#039; and o.name in (
&#039;CancelDataWareHouseBuild&#039;)
order by o.name,c.colid]]></description>
		<content:encoded><![CDATA[<p>Great article.  I have a question, however.  I am building a database at the moment and adding columns just about everyday to handle new situations which arise.</p>
<p>I found this great query which helps document databases.  I have two columns defined in one table in particular which are datetime fields.  Since we don&#8217;t have plans to go to SQL 2008 anytime soon, I want to return the time, rather than the datetime and parse it out in C# (lazy?).</p>
<p>So I would like to implement that great query with the time conversion above, but the query says syntax error near &#8216;c&#8217;.</p>
<p>Hopefully this is just a simple no-brainer.  I&#8217;ll keep banging away at it but perhaps somebody could simply look at it and say &#8216;Duh, you moron.  You need to do&#8230;&#8217;</p>
<p>Here we go:</p>
<p>SELECT<br />
column_name= case c.name when &#8216;OnlyBuildIfGreaterThan&#8217; then<br />
	Convert(varchar(10) c.name, 108)<br />
when &#8216;OnlyBuildIfLessThan&#8217; then<br />
	Convert(varchar(10) c.name, 108)<br />
else<br />
	c.name<br />
end as c.name<br />
datatype=t.name,<br />
length=c.length<br />
FROM sysobjects o INNER JOIN syscolumns c ON o.id = c.id<br />
inner join systypes t on c.xtype=t.xtype<br />
where o.xtype=&#8217;U&#8217; and o.name in (<br />
&#8216;CancelDataWareHouseBuild&#8217;)<br />
order by o.name,c.colid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muni Reddy BN</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-30494</link>
		<dc:creator><![CDATA[Muni Reddy BN]]></dc:creator>
		<pubDate>Mon, 31 Dec 2007 09:31:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-30494</guid>
		<description><![CDATA[Thanks for giving a very interesting and important information. I am working as DBA. Allthough we can get the date and time seperately by using Convert function, there are many occassions we never need the date combined with time. Our .Net development team had to struggle a lot to get rid of time element from date as their projects should get date without convert function. This feature in SQL Server 2008 will definitely reduce the burden of such developers.]]></description>
		<content:encoded><![CDATA[<p>Thanks for giving a very interesting and important information. I am working as DBA. Allthough we can get the date and time seperately by using Convert function, there are many occassions we never need the date combined with time. Our .Net development team had to struggle a lot to get rid of time element from date as their projects should get date without convert function. This feature in SQL Server 2008 will definitely reduce the burden of such developers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Chen</title>
		<link>http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-28666</link>
		<dc:creator><![CDATA[Andrew Chen]]></dc:creator>
		<pubDate>Mon, 24 Dec 2007 01:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/12/23/sql-server-2008-new-datatypes-date-and-time/#comment-28666</guid>
		<description><![CDATA[Thanks for the information. That is interesting to know. But I have never been bordered by a combined datetime data type. Sometimes it cause confuse for people from different environment. Because when people specifiy a date like, 2007-12-22, in the where statement they don&#039;t know it actually means 2007-12-22 00:00:00 for MS SQL.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the information. That is interesting to know. But I have never been bordered by a combined datetime data type. Sometimes it cause confuse for people from different environment. Because when people specifiy a date like, 2007-12-22, in the where statement they don&#8217;t know it actually means 2007-12-22 00:00:00 for MS SQL.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
