Hi dear S/W Eng and Asp.net c# Developer.
I am facing a big problem during converting a textbox value to decimal. baceous the Database type of that variable is decimal(4,4) that is client requirement.From front end when we passing a value like 1234.0000 MSSQL throws exception "Fail to convert numeric to decimal " Pls must guide or solve this problem.
Best Re guards
Thanks in Advance

Actual when i select datatype decimal(4,4) for any attribute like length and manually input values directly into the MSSQL2005 in this case it also throw exception
Fail to convert numeric to decimal "

CAST(Salary AS dec(12,2)) 'Salary in decimal' for SQL convert

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.