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
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
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
Viewing 3 posts - 1 through 3 (of 3 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy