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 2000 Forums
 SQL Server Development (2000)
 Convert 'January' as 1 etc

Author  Topic 

clarkbaker1964
Constraint Violating Yak Guru

428 Posts

Posted - 2004-11-10 : 20:40:49
Can this be converted without using a case statement.

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-11-10 : 21:01:14
SELECT DatePart(month, 'January' + ' 1, 1900')

Just replace the 'January' with the actual month name/expression.
Go to Top of Page
   

- Advertisement -