Syntax error converting the varchar value '3.1.7.4.3.9.' to a column of data type int...
how to overcome this problem ..
SQL Server Reporting Services
Syntax error converting the varchar value '3.1.7.4.3.9.' to a column of data type int...
how to overcome this problem ..
Hello Raj,
What should '3.1.7.4.3.9.' be, ayou wanting to remove the .'s to have it be 317439 Try this:
=cInt(Replace(Fields!Field1.Value
, ".", ""))
Jarret
It is clearly an SQL error which cannot be solved in SSRS using expressions.
I'm assuming that your dataset is formed by a stored procedure, not plain SQL text.
The error is because you are trying to put an invalid integer value into a table (temporary table or user table) column which is of INT datatype. If possible, get the SQL text of the stored procedure and check all insert/update statements and all the columns of INT datatype involved in it. Also check If there is an implicit conversion using CONVERT or CAST function.
Shyam
Yes, it is definitely a varchar. You may have to look out for columns in the table that is being used as source to insert/update the value in the table which has a corresponding column of INT datatype.
Shyam