In article <1128336951.842866.100600 (AT) g47g2000cwa (DOT) googlegroups.com>,
pedrojmendoza (AT) gmail (DOT) com says...
Quote:
Name Column: convert(CHAR, DatePart(month, '01' + '/' +
substring("dbo"."mis_dimension_process_date"."proc ess_date", 5, 2) +
'/' + substring("dbo"."mis_dimension_process_date"."proc ess_date", 1,
4))) |
The trick is to use the DATENAME() function instead of using DATEPART()
and CONVERT(), (which would just give you a string of '1'.)
Name Column: DateName(month, '01' + '/' +
substring("dbo"."mis_dimension_process_date"."proc ess_date", 5, 2) +
'/' + substring("dbo"."mis_dimension_process_date"."proc ess_date", 1,
4))
--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell