Hi Radek,
Thank you for your feedback
The SP is working fine on my db too and when I execute, I get the desired result too. The problem is that I'm unable to save the query:
/*select from [dbo].[OCRD] T1*/
Declare @fCard as varchar(200)
Declare @tCard as varchar(200)
/*where*/
set @fCard=/* T1.CardCode */ N'[%0]'
set @tCard=/* T1.CardCode */ N'[%1]'
exec [dbo].[Be1s_PROC_CustomerAging] @fCard, @tCard
Thanks,
Joseph