![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Justin, A couple questions: 1) What does the source time say? Any way of examining those fields to see why they behave as they do? 2) How are you viewing the column? I get your described behavior when opening the table in Enterprise Manager. The date/time rows with the time missing are the ones that start at midnight. Try viewing the table in Query Analyzer to see if they are truly missing. Let us know how you make out. Thomas Bradshaw Data Integration Specialist MyWebGrocer.com -- Message posted via http://www.sqlmonster.com |
#4
| |||
| |||
|
|
Thank you Thomas. I was able to find the difference with Query Analyzer, and it looked as 2005-10-03 00:00:00. I think that is good catch and my learning experience. Question: Why then this does not appear as " 10/3/2005 12:00:00 AM " instead? "Thomas Bradshaw via SQLMonster.com" wrote: Justin, A couple questions: 1) What does the source time say? Any way of examining those fields to see why they behave as they do? 2) How are you viewing the column? I get your described behavior when opening the table in Enterprise Manager. The date/time rows with the time missing are the ones that start at midnight. Try viewing the table in Query Analyzer to see if they are truly missing. Let us know how you make out. Thomas Bradshaw Data Integration Specialist MyWebGrocer.com -- Message posted via http://www.sqlmonster.com |
#5
| |||
| |||
|
|
The way it is displayed depends on the gui that is displaying it unless you have formatted it into a string with CONVERT(). -- Andrew J. Kelly SQL MVP "Justin Doh" <JustinDoh (AT) discussions (DOT) microsoft.com> wrote in message news 7448E86-7DF3-4D41-BC78-C9FF03B7CCF1 (AT) microsoft (DOT) com...Thank you Thomas. I was able to find the difference with Query Analyzer, and it looked as 2005-10-03 00:00:00. I think that is good catch and my learning experience. Question: Why then this does not appear as " 10/3/2005 12:00:00 AM " instead? "Thomas Bradshaw via SQLMonster.com" wrote: Justin, A couple questions: 1) What does the source time say? Any way of examining those fields to see why they behave as they do? 2) How are you viewing the column? I get your described behavior when opening the table in Enterprise Manager. The date/time rows with the time missing are the ones that start at midnight. Try viewing the table in Query Analyzer to see if they are truly missing. Let us know how you make out. Thomas Bradshaw Data Integration Specialist MyWebGrocer.com -- Message posted via http://www.sqlmonster.com |
#6
| |||
| |||
|
|
The smalldatetime data type does not store h/m/s data as a datetime data type would on SQL Server. In your destination table make the field a "datetime" data type instead of "smalldatetime". ![]() Beau "Andrew J. Kelly" wrote: The way it is displayed depends on the gui that is displaying it unless you have formatted it into a string with CONVERT(). -- Andrew J. Kelly SQL MVP "Justin Doh" <JustinDoh (AT) discussions (DOT) microsoft.com> wrote in message news 7448E86-7DF3-4D41-BC78-C9FF03B7CCF1 (AT) microsoft (DOT) com...Thank you Thomas. I was able to find the difference with Query Analyzer, and it looked as 2005-10-03 00:00:00. I think that is good catch and my learning experience. Question: Why then this does not appear as " 10/3/2005 12:00:00 AM " instead? "Thomas Bradshaw via SQLMonster.com" wrote: Justin, A couple questions: 1) What does the source time say? Any way of examining those fields to see why they behave as they do? 2) How are you viewing the column? I get your described behavior when opening the table in Enterprise Manager. The date/time rows with the time missing are the ones that start at midnight. Try viewing the table in Query Analyzer to see if they are truly missing. Let us know how you make out. Thomas Bradshaw Data Integration Specialist MyWebGrocer.com -- Message posted via http://www.sqlmonster.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |