When we follow the error message it is definitely misleading and I concentrated mostly on the connections at report server level but finally I focused again on the error message which made me to see closely towards the parameters.
Select distinct CHARINDEX(cast(0x1A as varchar(1)),Col1),Col2,Col1
from
dbo.Table
Where
CHARINDEX(cast(0x1A as varchar(1)),Col1) > 0
The above query will give the records which has junk or dirty data in the column values. As per the error message I tested the data in Col1 with value "0*1A" in it. So after retrieving the records I replaced the junk values in name data with "" value. But before replacing we need to find out the ASCII value. For Ex:
SELECT ASCII(' ')
Which will give you the below value
Now you need to plan to replace this character with nothing as below
Once I replaced the data in the report server itself and published it that resolved the issue.
No comments:
Post a Comment