Re: datetime to smalldatetime
From: Barak zabari (lotemlotad_at_yahoo.com)
Date: 03/29/05
- Next message: Kevin Frevert: "Re: datetime to smalldatetime"
- Previous message: P.S.Bell: "datetime to smalldatetime"
- In reply to: P.S.Bell: "datetime to smalldatetime"
- Next in thread: Bill Todd: "Re: datetime to smalldatetime"
- Reply: Bill Todd: "Re: datetime to smalldatetime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Mar 2005 15:16:43 +0200
You got it backward, as consequence of halving the size of the saved data
they needed to use smaller range of dates.
Since delphi use 8 bits for datetime you can't easly convert to a
smalldatetime.
"P.S.Bell" <pat@patbell.co.uk> wrote in message
news:VA.00000866.00d45b3f@patbell.co.uk...
> I have been told in this newsgroup that it is not possible to
> convert a Delphi datetime to SQL Server smalldatetime.
>
> So my only solution to sending datetimes from delphi to SQL
> Server is to change any SQL Server smalldatetime fields to
> datetimes?
>
> Considering that the difference is simply range (albeit as a
> consequence of narrowing the range the actual size halves to 4
> bits) - I find this surprising.
>
> Pat Bell
>
- Next message: Kevin Frevert: "Re: datetime to smalldatetime"
- Previous message: P.S.Bell: "datetime to smalldatetime"
- In reply to: P.S.Bell: "datetime to smalldatetime"
- Next in thread: Bill Todd: "Re: datetime to smalldatetime"
- Reply: Bill Todd: "Re: datetime to smalldatetime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|