Rahul
3/13/2007 12:24:00 PM
On Mar 13, 11:52 am, "JayKon" <s...@nospam.org> wrote:
> From BOL
>
> "smalldatetime
> Date and time data from January 1, 1900, through June 6, 2079, with accuracy
> to the minute."
>
> "Rahul" <verma.car...@gmail.com> wrote in message
>
> news:1173764424.019470.124090@v33g2000cwv.googlegroups.com...
>
>
>
> > Friends
> > I have face very silly problem.
> > I have insert following rows and find the result is totally
> > different why?, Is sql server 2000 has not consider time correctly.
>
> > Create Table #temp
> > (
> > ColA VarChar(4),
> > ColB SmallDateTime
> > )
>
> > Insert Into #temp Values('A', '2007-03-11 17:59:59')
> > Insert Into #temp Values('B', '2007-03-10 17:59:59')
> > Insert Into #temp Values('C', '2007-03-10 18:00:00')
> > Insert Into #temp Values('D', '2007-03-10 18:00:01')
> > Insert Into #temp Values('E', '2007-03-11 18:01:00')
>
> > ColA ColB
> > ---- ------------------------------------------------------
> > A 2007-03-11 18:00:00
> > B 2007-03-10 18:00:00
> > C 2007-03-10 18:00:00
> > D 2007-03-10 18:00:00
> > E 2007-03-11 18:01:00
>
> > (5 row(s) affected)- Hide quoted text -
>
> - Show quoted text -
Jaykon,
I know about the accuracy of smalldatetime datatype.
But in bol, there is not mentation about time, ie time is change.
Rahul