Hi Dieter -
I just cant figure out how to successfully cast a VARCHAR(5) into a INT field through a select.
SELECT BlgProdInstID, AcctID, DataSrcTypeCd,
CAST(BlgPrdSvcCd as int),
BlgPrdPckgCd,
BlgPrdInstallCnt, SbscrSvcCntInd, RetailAmt, PrcBeforeDiscount,
PrcAfterDiscount, CustDiscountAmt, DiscountAmt, MultiCharge,
ItemType, MSOSvcCd,
FROM Table
The error i get is that there is a bad character in the format or data....
Hi Dieter -
I just cant figure out how to successfully cast a VARCHAR(5) into a INT field through a select.
SELECT BlgProdInstID, AcctID, DataSrcTypeCd,
CAST(BlgPrdSvcCd as int),
BlgPrdPckgCd,
BlgPrdInstallCnt, SbscrSvcCntInd, RetailAmt, PrcBeforeDiscount,
PrcAfterDiscount, CustDiscountAmt, DiscountAmt, MultiCharge,
ItemType, MSOSvcCd,
FROM Table
The error i get is that there is a bad character in the format or data....