<?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/'><id>tag:blogger.com,1999:blog-5655646.post112733094615003675..comments</id><updated>2011-09-13T09:18:09.956-05:00</updated><category term='mobile'/><category term='virtualization'/><category term='yahoo'/><category term='wiki'/><category term='tools'/><category term='javascript'/><category term='news'/><category term='html5'/><category term='apple'/><category term='wf'/><category term='advertising'/><category term='livewriter'/><category term='icantbelieveihaventdonethisbefore'/><category term='c#'/><category term='firefox'/><category term='sharepoint'/><category term='squrl'/><category term='css'/><category term='windows forms'/><category term='amazon'/><category term='video'/><category term='mashup'/><category term='usability'/><category term='rant'/><category term='asp.net mvc'/><category term='kids'/><category term='resharper'/><category term='xml'/><category term='linq'/><category term='idea'/><category term='business'/><category term='office'/><category term='SharePoint2010'/><category term='olpc'/><category term='photography'/><category term='silverlight'/><category term='ajax'/><category term='security'/><category term='howto'/><category term='politics'/><category term='programming'/><category term='norway'/><category term='random'/><category term='silliness'/><category term='hybrid'/><category term='communication'/><category term='xo'/><category term='rave'/><category term='experiment'/><category term='links'/><category term='t4'/><category term='webservice'/><category term='visual studio'/><category term='mvc'/><category term='jquery'/><category term='code smith'/><category term='balsamiq'/><category term='android'/><category term='economics'/><category term='energy'/><category term='scrum'/><category term='sql'/><category term='food'/><category term='twitter'/><category term='errors'/><category term='projectmanagement'/><category term='marketing'/><category term='microsoft'/><category term='asp.net'/><category term='design'/><category term='windows7'/><category term='testing'/><category term='me-me-me'/><category term='failure'/><category term='moss'/><category term='google'/><title type='text'>Comments on mo.notono.us: SQL: Updated IsSmallDate function</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mo.notono.us/feeds/112733094615003675/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5655646/112733094615003675/comments/default'/><link rel='alternate' type='text/html' href='http://mo.notono.us/2005/09/sql-updated-issmalldate-function.html'/><author><name>Oskar</name><uri>http://www.blogger.com/profile/02957780889508741710</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_ro5VHF7K1Tk/S2MLH-wAl2I/AAAAAAAAHo4/cEO2fY37b_8/S220/grouch500.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5655646.post-114407732393661296</id><published>2006-04-03T10:15:00.000-05:00</published><updated>2006-04-03T10:15:00.000-05:00</updated><title type='text'>Mounir, thanks.&lt;br&gt;&lt;br&gt;My original code was quite ...</title><content type='html'>Mounir, thanks.&lt;BR/&gt;&lt;BR/&gt;My original code was quite brain-dead - after my struggles with ISNUMERIC I had been fixating on dates that contained year-info only.&lt;BR/&gt;&lt;BR/&gt;The corrected function can be found &lt;A HREF="http://austegard.blogspot.com/2006/04/sql-corrected-issmalldate-function.html" REL="nofollow"&gt;here&lt;/A&gt; and also on &lt;A HREF="http://www.bigbold.com/snippets/posts/show/1180" REL="nofollow"&gt;Code Snippets&lt;/A&gt;.&lt;BR/&gt;&lt;BR/&gt;Thanks again for correcting my bug.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5655646/112733094615003675/comments/default/114407732393661296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5655646/112733094615003675/comments/default/114407732393661296'/><link rel='alternate' type='text/html' href='http://mo.notono.us/2005/09/sql-updated-issmalldate-function.html?showComment=1144077300000#c114407732393661296' title=''/><author><name>Oskar</name><uri>http://www.blogger.com/profile/02957780889508741710</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mo.notono.us/2005/09/sql-updated-issmalldate-function.html' ref='tag:blogger.com,1999:blog-5655646.post-112733094615003675' source='http://www.blogger.com/feeds/5655646/posts/default/112733094615003675' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1389713704'/></entry><entry><id>tag:blogger.com,1999:blog-5655646.post-114405515506733051</id><published>2006-04-03T04:05:00.000-05:00</published><updated>2006-04-03T04:05:00.000-05:00</updated><title type='text'>this script will not work correct! because, it exe...</title><content type='html'>this script will not work correct! because, it execute correctly this datetime (exp. 01.01.1888). but, this exemple is not the smalldatetime !! &lt;BR/&gt;i want correct them, i modified this script on follow :&lt;BR/&gt;&lt;BR/&gt;--Checks if a string is a valid smalldatetime&lt;BR/&gt;ALTER FUNCTION dbo.IsSmallDate&lt;BR/&gt;(&lt;BR/&gt;  @SmallDateString varchar(20) --The input string to check&lt;BR/&gt;)&lt;BR/&gt;RETURNS BIT&lt;BR/&gt;AS&lt;BR/&gt;BEGIN&lt;BR/&gt;  DECLARE @Result bit&lt;BR/&gt;  SET @SmallDateString = LTRIM(RTRIM(@SmallDateString))&lt;BR/&gt;&lt;BR/&gt;  if (isdate(@SmallDateString)=1  and (year(convert(datetime, @SmallDateString)) between 1900 and 2079))&lt;BR/&gt;      SET @Result = 1&lt;BR/&gt;    ELSE&lt;BR/&gt;      SET @Result = 0&lt;BR/&gt;    END&lt;BR/&gt;  RETURN @Result&lt;BR/&gt;END</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5655646/112733094615003675/comments/default/114405515506733051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5655646/112733094615003675/comments/default/114405515506733051'/><link rel='alternate' type='text/html' href='http://mo.notono.us/2005/09/sql-updated-issmalldate-function.html?showComment=1144055100000#c114405515506733051' title=''/><author><name>Mounir BEN HAMED</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mo.notono.us/2005/09/sql-updated-issmalldate-function.html' ref='tag:blogger.com,1999:blog-5655646.post-112733094615003675' source='http://www.blogger.com/feeds/5655646/posts/default/112733094615003675' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-850613175'/></entry></feed>
