I am using a table variable and updating it from another table. But some of the column names in my table variable are same as the table from which i am updating.I am using the below codeUPDATE @tblCalcClearingChargeSET IntClrChrgID = a.IntClrChrgID, AgencyFee = ISNULL(a.AgencyFee,0), PrincipalFee = ISNULL(a.PrincipalFee,0),FROM tm_ClrChrgConfigFlat a WHERE a.intRepID = Rep_ID
I have even tried using the below code, but it does not work either...UPDATE @tblCalcClearingChargeSET @tblCalcClearingCharge.IntClrChrgID = a.IntClrChrgID, @tblCalcClearingCharge.AgencyFee = ISNULL(a.AgencyFee,0), @tblCalcClearingCharge.PrincipalFee = ISNULL(a.PrincipalFee,0),FROM tm_ClrChrgConfigFlat a WHERE a.intRepID = Rep_ID
Is there any solution to this, besides changing the column names in my table variable.Thanks- Anand