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
 SSIS and Import/Export (2005)
 convert date

Author  Topic 

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2010-07-08 : 14:48:43
How do I convert oracle Date (31-JUL-09) to MSSQL smalldatetime?

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

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-08 : 14:56:54
It converts easily: select cast('31-JUL-09' as smalldatetime)

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-07-09 : 02:34:25
If you have non-English server you may need to express dates in YYYYMMDD format

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -