Re: sql server 2000



Hi,

See Functions DATEPART and CONVERT in books online.

Thanks
Hari
SQL Server MVP

"Wendy Elizabeth" <WendyElizabeth@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:2098B955-D0AF-4C4D-A7FC-930EFC2CB6BC@xxxxxxxxxxxxxxxx
>I just started to work with sql server 2000. I want to write a query
>
> against "datetime" columns in the sql server 2000 database. I am to be
>
> able to do the following with the sql server 2000 "datetime" columns:
>
> 1. Be able to access the date portion only.
> 2. Be able to access the time portion only.
> 3. Be able to access only a portion of the date like the month and/or
>
> year only.
> 4. Be able to access only a portion of the time like the milliseconds
>
> and/or the minutes.
>
> What kind of query statements would I need to write, to be able to
>
> access only a portion of "datetime" columns?
>
> Thanks!
>


.



Relevant Pages

  • Re: query question
    ... Looking for a SQL Server replication book? ... > against "datetime" columns in the sql server 2000 database. ... Be able to access the date portion only. ... > What kind of query statements would I need to write, ...
    (microsoft.public.sqlserver.fulltext)
  • query question
    ... I just started to work with sql server 2000. ... against "datetime" columns in the sql server 2000 database. ... Be able to access the date portion only. ... What kind of query statements would I need to write, ...
    (microsoft.public.sqlserver.fulltext)
  • sql server 2000
    ... I just started to work with sql server 2000. ... against "datetime" columns in the sql server 2000 database. ... Be able to access the date portion only. ... What kind of query statements would I need to write, ...
    (microsoft.public.sqlserver.mseq)
  • Loss of Precision in DateTime
    ... DateTime to a smalldatetime in sql server, ... fall at exactly midnight drops the time portion and only stores the ... // Snip set db access obj ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Performance improvement in the 2.0 framework
    ... portion of the Framework (or SQL Server). ... It's in the EULA. ...
    (microsoft.public.dotnet.framework.aspnet)