I'm inserting few values into a SQL Server table. When I'm getting the values from the front end they are strings. So I need to convert them to int first, before I can insert them into the table.
I'm using this code:
Int64 x = Convert.ToInt64(some string value);
This x I want to insert into the table, into a column of type numeric(18,0).
When doing this conversion, I get an error
Failed to convert parameter value from int64 to int32
while my all the values are just like 1000 around.