November 17, 2009 at 4:14 am
hi
i am getting different output than the inserting values
--------------------------------------------------------------------------------------
create table a ( abc datetime)
insert into a values(cast(('2009-11-16 23:43:57.049') as datetime))
select * from a
output
---------------------
2009-11-16 23:43:57.049
insert into a values('2009-11-16 23:43:57.058')
select * from a
output
---------------------
2009-11-16 23:43:57.053
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
November 17, 2009 at 4:25 am
November 17, 2009 at 4:30 am
thanks
but any alternative for it ?
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
November 17, 2009 at 4:35 am
Not sure what you mean, but SQL Server 2008 has date and time types accurate to 100 nanoseconds.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply