Re: Milliseconds to SQL Server DateTime
- From: Jouni Aro <jouni.aro@xxxxxxxxx>
- Date: Fri, 23 Nov 2007 15:15:07 +0200
Vitt wrote:
For the moment, you can use a data types Float, where a day is equivalent to one unit, similar to the data types DateTime
Test:
Create table test(D1 DateTime, D2 Float);
insert into Test (D1, D2) values(now, now);
select D1, D2, cast(D2 as DateTime) from Test;
I've tried that also, but for some reason, when I am using parameters, I get the same value to the database with every insert, even if I update the parameter... I am trying to find out what I need to do to refresh the param value. Quite strange...
.
- Follow-Ups:
- Re: Milliseconds to SQL Server DateTime
- From: Jouni Aro
- Re: Milliseconds to SQL Server DateTime
- References:
- Milliseconds to SQL Server DateTime
- From: Jouni Aro
- Re: Milliseconds to SQL Server DateTime
- From: Helmut Woess
- Re: Milliseconds to SQL Server DateTime
- From: Vitt
- Milliseconds to SQL Server DateTime
- Prev by Date: Re: Closed DataSet
- Next by Date: Re: Milliseconds to SQL Server DateTime
- Previous by thread: Re: Milliseconds to SQL Server DateTime
- Next by thread: Re: Milliseconds to SQL Server DateTime
- Index(es):
Relevant Pages
|
|