How to convert an nvarchar to decimal in SQL Server?
I need to convert a value like '38,716.1311'
to 38716.1311.
I have tried using this method but can't successfully convert:
DECLARE @TempValue NVARCHAR(100) = '38,716.1311'
SELECT
CONVERT(DECIMAL(18, 2), @TempValue)
Can anyone suggest the correct query? Thanks in advance