Hi,
in the stored you have to set in (CREATE TABLE ##LRec) all numeric(19,2) column to nvarchar (21)
example:
Debit numeric(19,2), to Debit nvarchar (21)
Credit numeric(19,2),to Credit nvarchar (21)
Balance numeric(19,2) to Balanc nvarchar (21)
and in the query Select Cast(Cast(Debit as numeric(19,2)) as nvarchar(21) ) Debit .........etc...
try this.
regards, Alessandro