Re: Query Help - Distinct Row with Date Portion of a DateTime
- From: v-kevy@xxxxxxxxxxxxxxxxxxxx (Kevin Yu [MSFT])
- Date: Mon, 10 Jul 2006 01:50:21 GMT
Hi Alex,
I agree with Theo that we can use the CONVERT function in TSQL to achieve
this in a SQL server query. However, your data is in a DataTable.
In this case, I think you have 2 options.
1. Update the data into database, and do the query on SQL server.
2. Write a method that goes through all the rows and selects out the
distinct dates.
Kevin Yu
Microsoft Online Community Support
============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- References:
- Re: Query Help - Distinct Row with Date Portion of a DateTime
- From: Theo Verweij
- Re: Query Help - Distinct Row with Date Portion of a DateTime
- Prev by Date: SqlCommand and multiple SQL statements
- Next by Date: Re: Access Date Format
- Previous by thread: Re: Query Help - Distinct Row with Date Portion of a DateTime
- Next by thread: Problem with Login control and web.config
- Index(es):
Relevant Pages
|
|