0

I want to convert data type from nvarchar to numeric, but receive an error:

numeric is not a recognized built-in function name.

Which the other device can be used normally:

SELECT TRY_CONVERT(numeric(38,2),Usage_Amount) as Result
    FROM [MMS].[dbo].[Tooling_DieCut]
    WHERE Tooling_Type = 'Solid Tool' 

Microsoft SQL Server 2016

1 Answer 1

2

Use Decimal instead of Numeric...

SELECT TRY_CONVERT(decimal(38,2),Usage_Amount) as Result
    FROM [MMS].[dbo].[Tooling_DieCut]
    WHERE Tooling_Type = 'Solid Tool' 

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.