Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 convert Oracle date

Author  Topic 

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2010-07-26 : 15:33:46
I need to convert the date to a SQL DateTime field. In Oracle the date looks like "08-FEB-97"

Dave
Helixpoint Web Development
http://www.helixpoint.com

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2010-07-26 : 15:38:28
SELECT CAST('08-FEB-97' AS DATETIME)
SELECT CAST(Col1 AS DATETIME) FROM Table1




N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page
   

- Advertisement -