January 5, 2011 at 10:13 am
yes they are the same
January 5, 2011 at 11:17 am
koolme_85 (1/5/2011)
i did but now its throwing the arithematic over flow errorMsg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type datetime.
after i replaced the code with
LEFT(DATENAME(mm,DDmasterFacts.postdatedimkey),3) + ' ' + DATENAME(yy,DDmasterFacts.postdatedimkey) AS [monthname],
Could you post your revised code here?
January 6, 2011 at 12:01 am
koolme_85 (1/5/2011)
i did but now its throwing the arithematic over flow errorMsg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type datetime.
after i replaced the code with
LEFT(DATENAME(mm,DDmasterFacts.postdatedimkey),3) + ' ' + DATENAME(yy,DDmasterFacts.postdatedimkey) AS [monthname],
What is the datatype of the DDmasterFacts.postdatedimkey? Credits to Navy beans says it's an INTEGER and not a DATETIME.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2011 at 7:45 am
Jeff Moden (1/6/2011)
... Credits to Navy beans ...
Huh?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 7, 2011 at 6:23 pm
WayneS (1/6/2011)
Jeff Moden (1/6/2011)
... Credits to Navy beans ...Huh?
Think "Dollars to Donuts". 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 16 through 19 (of 19 total)
You must be logged in to reply to this topic. Login to reply