Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Conversion failed when converting date and/or time from character string

$
0
0

Hi,

I am trying to run the following select statement and receive this error.

select convert(date,convert(varchar,FiscalYearId)+'-'+convert(varchar,FiscalMonthOfYearID)+'-01')
from ods.common.tods_Date

FiscalyearId and FiscalMonthOfYearId are both int.

Can someone please help me with this.

Thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>