<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7482515403302027089</id><updated>2024-09-10T21:37:24.072+05:30</updated><category term="AJAX Statistic .NET"/><category term="Find Size of Tables and Database in SQL"/><category term="IIS Compression"/><category term="Manipulate DateTime"/><category term="SQL"/><category term="T-SQL"/><category term="Visual Studio 2008 Service Pack 1"/><category term="Visual Studio tips and Tricks"/><title type='text'>Tamil DOt NEt</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7482515403302027089.post-7587338504669590625</id><published>2010-08-02T10:37:00.003+05:30</published><updated>2010-08-02T10:45:45.822+05:30</updated><title type='text'>How to identify your SQL Server version and edition</title><content type='html'>&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;How to identify your SQL Server version and edition&lt;/span&gt; &lt;/br&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;Run the below command in your SQL Server Query Window:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic; font-family: trebuchet ms;font-size:85%;&quot; &gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;SELECT SERVERPROPERTY(&#39;productversion&#39;), SERVERPROPERTY (&#39;productlevel&#39;), SERVERPROPERTY (&#39;edition&#39;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;Pl. Note: This command will work in SQL 2008, 2005, 2000. not in SQL 7&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/7587338504669590625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7482515403302027089/7587338504669590625' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/7587338504669590625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/7587338504669590625'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/2010/08/how-to-identify-your-sql-server-version.html' title='How to identify your SQL Server version and edition'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7482515403302027089.post-6260597236141546025</id><published>2010-07-30T11:28:00.007+05:30</published><updated>2010-07-30T11:52:23.788+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="IIS Compression"/><title type='text'>Compression in IIS 6.0</title><content type='html'>&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Guys, Pl. dont miss this if you are using IIS 6,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: verdana;&quot;&gt;Pl. find the link for how to implement Compression in IIS 6:&lt;/span&gt; &lt;/br&gt; &lt;/br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style=&quot;font-family: verdana;&quot; href=&quot;http://weblogs.asp.net/owscott/archive/2004/01/12/57916.aspx&quot;&gt;Scott Forsyth&#39;s Blog&lt;/a&gt;&lt;/br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style=&quot;font-family: verdana;&quot; href=&quot;http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/502ef631-3695-4616-b268-cbe7cf1351ce.mspx?mfr=true&quot;&gt;Enabling HTTP Compression - Microsoft&lt;/a&gt;&lt;/br&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style=&quot;font-family: verdana;&quot; href=&quot;http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5bce429d-c4a7-4f9e-a619-5972497b932a.mspx?mfr=true&quot;&gt;Customizing the File Types IIS Compresses - Microsoft&lt;/a&gt;&lt;/span&gt;&lt;/br&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/6260597236141546025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7482515403302027089/6260597236141546025' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/6260597236141546025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/6260597236141546025'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/2010/07/iis-compression-in-iis-60.html' title='Compression in IIS 6.0'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7482515403302027089.post-5160107186842121744</id><published>2010-01-18T16:26:00.002+05:30</published><updated>2010-01-18T16:29:12.257+05:30</updated><title type='text'>Reasons For Choosing WPF Over ASP.NET For Our Very Large Project</title><content type='html'>Good article on WPF Vs Asp.Net:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://karlshifflett.wordpress.com/2007/12/20/reasons-for-choosing-wpf-over-aspnet-for-very-large-project/&quot; target=&quot;_blank&quot;&gt;http://karlshifflett.wordpress.com/2007/12/20/reasons-for-choosing-wpf-over-aspnet-for-very-large-project/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/5160107186842121744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7482515403302027089/5160107186842121744' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/5160107186842121744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/5160107186842121744'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/2010/01/reasons-for-choosing-wpf-over-aspnet.html' title='Reasons For Choosing WPF Over ASP.NET For Our Very Large Project'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7482515403302027089.post-3952391475395995526</id><published>2009-10-05T14:21:00.002+05:30</published><updated>2009-10-05T14:24:07.731+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio tips and Tricks"/><title type='text'>Visual Studio Debugging Tips and Tricks</title><content type='html'>Visual Studio Debugging Tips and Tricks:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://blogesh.wordpress.com/2008/09/09/visual-studio-debugging-tips-and-tricks/&quot; target=&quot;_blank&quot;&gt;http://blogesh.wordpress.com/2008/09/09/visual-studio-debugging-tips-and-tricks/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/3952391475395995526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7482515403302027089/3952391475395995526' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/3952391475395995526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/3952391475395995526'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/2009/10/visual-studio-debugging-tips-and-tricks.html' title='Visual Studio Debugging Tips and Tricks'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7482515403302027089.post-1145658044941549523</id><published>2009-09-10T13:25:00.003+05:30</published><updated>2009-09-10T13:34:02.092+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Find Size of Tables and Database in SQL"/><title type='text'>Find Size of Tables and Database in SQL</title><content type='html'>To know the size of tables in the database:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic; font-family: trebuchet ms;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;select object_name(id) [Table Name], [Table Size] = convert (varchar, dpages * 8) + &#39; KB&#39; from sysindexes where indid in (0,1) order by dpages desc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To Know the size of the databases in the server:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: trebuchet ms; font-style: italic;&quot;&gt;SELECT name, size * (8192/(1024.*1024)) FROM sys.master_files  ORDER BY size DESC &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/1145658044941549523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7482515403302027089/1145658044941549523' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/1145658044941549523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/1145658044941549523'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/2009/09/find-size-of-tables-and-database-in-sql.html' title='Find Size of Tables and Database in SQL'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7482515403302027089.post-2649977815767150555</id><published>2009-08-31T17:57:00.000+05:30</published><updated>2009-08-31T17:59:39.823+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX Statistic .NET"/><title type='text'>Results of AJAX Statistic for .NET Development</title><content type='html'>Pl. check below URL to know AJAX Statistic for .NET Development:&lt;br /&gt;&lt;br /&gt;http://weblogs.asp.net/mschwarz/archive/2009/06/23/results-of-ajax-statistic-for-net-development.aspx</content><link rel='replies' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/2649977815767150555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7482515403302027089/2649977815767150555' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/2649977815767150555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/2649977815767150555'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/2009/08/results-of-ajax-statistic-for-net.html' title='Results of AJAX Statistic for .NET Development'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7482515403302027089.post-8164652105341984213</id><published>2009-05-14T12:17:00.004+05:30</published><updated>2009-08-31T18:06:21.954+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Useful SQL Blog</title><content type='html'>&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;Hi all,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;I&#39;m back with few userful SQL blogs / sites&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style=&quot;font-family: times new roman;&quot; href=&quot;http://weblogs.sqlteam.com/jeffs/Default.aspx&quot; target=&quot;_blank&quot;&gt;http://weblogs.sqlteam.com/jeffs/Default.aspx&lt;/a&gt;&lt;br /&gt;&lt;a style=&quot;font-family: times new roman;&quot; href=&quot;http://blog.sqlauthority.com/&quot; target=&quot;_blank&quot;&gt;http://blog.sqlauthority.com/&lt;/a&gt;&lt;br /&gt;&lt;a style=&quot;font-family: times new roman;&quot; href=&quot;http://www.sqlteam.com/&quot; target=&quot;_blank&quot;&gt;http://www.sqlteam.com/&lt;/a&gt;&lt;br /&gt;&lt;a style=&quot;font-family: times new roman;&quot; href=&quot;http://weblogs.sqlteam.com/brettk/Default.aspx&quot; target=&quot;_blank&quot;&gt;http://weblogs.sqlteam.com/brettk/Default.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: trebuchet ms;&quot;&gt;Check out. &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/8164652105341984213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7482515403302027089/8164652105341984213' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/8164652105341984213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/8164652105341984213'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/2009/05/useful-sql-blog.html' title='Useful SQL Blog'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7482515403302027089.post-1905690321088767142</id><published>2008-09-09T11:31:00.003+05:30</published><updated>2008-09-09T17:24:31.709+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio 2008 Service Pack 1"/><title type='text'>Microsoft Visual Studio 2008 Service Pack 1 Offline Installer</title><content type='html'>&lt;span style=&quot;font-family: trebuchet ms;font-family:trebuchet ms;font-size:85%;&quot;  &gt;Hi all,&lt;/span&gt;&lt;span style=&quot;font-family: trebuchet ms;font-size:85%;&quot; &gt;&lt;br /&gt;&lt;br /&gt;Whoever don&#39;t have internet connection and want to install Visual Studio 2008 SP1.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: trebuchet ms;font-family:trebuchet ms;font-size:85%;&quot;  &gt;You can download Complete Service Pack 1 &lt;/span&gt;&lt;span style=&quot;font-family: trebuchet ms;font-family:trebuchet ms;font-size:85%;&quot;  &gt; (832 MB) &lt;/span&gt;&lt;span style=&quot;font-family: trebuchet ms;font-family:trebuchet ms;font-size:85%;&quot;  &gt;Installer in &lt;/span&gt;&lt;span style=&quot;font-family: trebuchet ms;font-size:85%;&quot; &gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=27673C47-B3B5-4C67-BD99-84E525B5CE61&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;this link&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: trebuchet ms;font-family:trebuchet ms;font-size:85%;&quot;  &gt;. It doesn&#39;t requires internet connection while Installing.&lt;/span&gt;&lt;span style=&quot;font-family: trebuchet ms;font-size:85%;&quot; &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: trebuchet ms;font-family:trebuchet ms;font-size:85%;&quot;  &gt;&lt;a href=&quot;http://codebetter.com/blogs/patricksmacchia/archive/2008/08/13/net-3-5-sp1-changes-overview.aspx&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/1905690321088767142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7482515403302027089/1905690321088767142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/1905690321088767142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/1905690321088767142'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/2008/09/microsoft-visual-studio-2008-service.html' title='Microsoft Visual Studio 2008 Service Pack 1 Offline Installer'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7482515403302027089.post-2608515756450940268</id><published>2008-08-27T12:44:00.003+05:30</published><updated>2008-09-04T17:59:19.283+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Manipulate DateTime"/><category scheme="http://www.blogger.com/atom/ns#" term="T-SQL"/><title type='text'>Manipulate DateTime in T-SQL - Part 1</title><content type='html'>&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;This is my first post in this blog and I&#39;m going to start with a simple task.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;In Sql 2005 to store Date / Time / Date&amp;amp;Time we have only two Data types:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;DateTime&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;SmallDateTime&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;In 2005 we didn&#39;t any datatype to store Date or Time value alone. &lt;/span&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;To overcome this issue, here we want to remove/Ignore the Time value from DateTime.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Before starting this operation, first I&#39;d like to say that DateTime values are stored in numeric value. Execute below Query to understand it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);font-family:courier new;&quot; &gt;SELECT CONVERT (DATETIME, 0)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 153);font-family:courier new;&quot; &gt;-- Output: 1990-01-01 00:00:00.000&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;–- Initial value of DateTime is 1990-01-01 (In Numeric value is &quot;0&quot;)&lt;br /&gt;-- We can increase or decrease DateTime value using Numeric values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);font-family:courier new;&quot; &gt;SELECT CONVERT (DATETIME, 31)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 102);font-family:courier new;&quot; &gt;-- Output: 1900-02-01 00:00:00.000&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 153, 0);font-family:courier new;&quot; &gt;SELECT CONVERT (DATETIME, -31)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);font-family:courier new;&quot; &gt;-- Output: 1899-12-01 00:00:00.000&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;color: rgb(0, 153, 0);&quot;&gt;SELECT CONVERT (float, getdate())&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);font-family:courier new;&quot; &gt;-- Displays 39685.6186604167&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;–- Current Date time : 2008-08-27 14:51:50.610&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;&lt;br /&gt;In the above result,  39685 &lt;span style=&quot;font-style: italic;&quot;&gt;(2008/08/27- 1900/01/01 = 39685 days)&lt;/span&gt; is value of days and .6186604167 is value of time (After decimal point values). So if we remove time values we can get the Date values alone.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Ex:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color: rgb(0, 153, 0);font-family:courier new;&quot; &gt;SELECT CAST (FLOOR (CAST (getdate() as float) ) as datetime )&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 102);font-family:courier new;&quot; &gt;-- Displays 2008-08-27 00:00:00.000&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Floor function is used to round-off float value. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:trebuchet ms;&quot;&gt;Note:  In SQL 2008, we have datatype to store &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/bb630352.aspx&quot; target=&quot;_blank&quot;&gt;Date&lt;/a&gt; or &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/bb677243.aspx&quot; target=&quot;_blank&quot;&gt;Time&lt;/a&gt; value separately &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tamilmannans.blogspot.com/feeds/2608515756450940268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7482515403302027089/2608515756450940268' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/2608515756450940268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7482515403302027089/posts/default/2608515756450940268'/><link rel='alternate' type='text/html' href='http://tamilmannans.blogspot.com/2008/08/manipulate-datetime-in-t-sql.html' title='Manipulate DateTime in T-SQL - Part 1'/><author><name>Tamil Mannan</name><uri>http://www.blogger.com/profile/15853761675075314879</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBsSQW3tP_2MIbJVnXobgYCd7crct_a4oet-AkzDEdFzNG1GqrggXeixkLtE2Akms6ymBOrf042OqhndR26gnMwJVu_o1EEb9NmyebxOWzEpdtorSaesROwNYa16_Ozw/s220/untitled.JPG'/></author><thr:total>2</thr:total></entry></feed>