Viewing 3 posts - 1 through 3 (of 3 total)
For SQL Server 2012 onwards simplest solution is to use TRY_PARSE.
DECLARE @NegativeNumeric varchar(100);
SET @NegativeNumeric='50.10-';
SELECT "Value" = TRY_PARSE(@NegativeNumeric AS DECIMAL(10,2));
June 4, 2019 at 10:05 pm
#3650265
Thanks Paul...I'll have a look at your links to see if it can
shed any light on a solution.
March 21, 2010 at 2:45 am
#1137319
Hi Jeff
Thanks for the reply. I think my problem is a bit different
than the solution you provided in that the id of the parent
for the child in #tree...
March 20, 2010 at 1:55 pm
#1137237