I did that but I am receiving an error Error converting data type varchar to bigint.
I have provide my declare also.
DECLARE @Div char(2),@Account bigint, @CorrespondType char(3), @MediaDate datetime, @Org_Div char(2), @Org_Account bigint, @Location varchar(500)
DECLARE @SQL varchar(700)
Any...