freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Bob Kline <bkline AT rksystems.com>
- To: TDS Development Group <freetds AT franklin.oit.unc.edu>
- Subject: Re: date type in ms sql 7.0
- Date: Tue, 3 Oct 2000 18:33:56 -0400 (EDT)
On Wed, 4 Oct 2000, James Cameron wrote:
> Bob Kline wrote:
> > 1. Chop off the part you don't want; or
> > 2. Use the CONVERT function with the style you want.
>
> Given that I want the seconds and can't seem to get them, how would I
> use CONVERT to get them?
This is a different question than the original poster asked, as he
wanted the date part but not the time. The unfortunate fact is that
Microsoft has seen fit to omit the standard's DATE and TIME data types
from its implementation of SQL. In your case, you can use style value 8
(or 108) to get back a string in the form hh:mm:ss. If you *only* want
the seconds (for whatever reason), you should look at using the DATEPART
function.
--
Bob Kline
mailto:bkline AT rksystems.com
http://www.rksystems.com
-
date type in ms sql 7.0,
Sam Sam, 10/03/2000
- <Possible follow-up(s)>
- RE: date type in ms sql 7.0, Wasson, Tim, 10/03/2000
- Re: date type in ms sql 7.0, James Cameron, 10/03/2000
- Re: date type in ms sql 7.0, Bob Kline, 10/03/2000
- FW: Re: date type in ms sql 7.0, Lowden, James K, 10/04/2000
- Re: FW: Re: date type in ms sql 7.0, James Cameron, 10/04/2000
Archive powered by MHonArc 2.6.24.