• Thanks for coming back to me. Yeah, its works fine in SSMS and also I import the query into excel and it also works fine.