Pass "1.0" from c# code to sql server
I have to pass value "1.0" from c# code and store as 1.0 in sql.If i keep String dataype it's storing as 1 in db
If i keep decimal (5,2) datatype its throwing error 'cannot convert decimal to varchar'. NOTE: I have kept datatype as decimal in database as well as in c#
Please do the needful