Hi All
I have following two columns as text data type in table T1
Col1
23-Nov-2005 02:02:19 PM
31-Oct-2005 04:07:05 PM
31-Oct-2005 04:06:46 PM
06-Dec-2005 02:14:05 PM
Col2
01-Jan-2006 12:00:00 AM
01-Jan-2006 12:00:00 AM
01-Jan-2006 12:00:00 AM
01-Jan-2006 12:00:00 AM
01-Jan-2006 12:00:00 AM
After running the following querys I get different data formats eventhough the data type has change to date/time
ALTER TABLE T1 ALTER COLUMN T1.Col1 DATETIME
ALTER TABLE T1 ALTER COLUMN T1.Col2 DATETIME
Col1
23-Nov-2005 02:02:19 PM
31-Oct-2005 04:07:05 PM
31-Oct-2005 04:06:46 PM
06-Dec-2005 02:14:05 PM
Col2
01-Jan-2005
01-Jan-2005
01-Jan-2005
01-Jan-2005
01-Jan-2005
What could be the reason. I need Col1 also same format as Col2
Cheers
Shabar