10 replies
Are you having the problem only with ISNUMERIC or with ISNUMERIC and data entry?
I tried a couple of SQL Servers and found that ISNUMERIC did not not recognize "1-" but I could enter "1-" into a numeric column and it was converted to "-1".
Oddly enough, even if I changed the negative number format in the Control Panel Regional settings to a trailing sign, ISNUMERIC still didn't recognize "1-" not displayed negative one as "1-".
by jim.schromm
by shmaltz
by jim.schromm
by lwachs
Have you checked to see what the problem server's Negative Number Format is set to? (Number tab of the Regional Settings in Control Panel). I can't swear that this is it, but it would be the first place I would check.
Best of luck!
by lwachs
by jim.schromm
by limbo
Is "1-" Numeric? No.
I dispute your ability to pass this through the ISNUMERIC function to return TRUE - ever.
As a soultion, how good is your string manpiulation knowledge?
In SQL...
SELECT RIGHT('1-',1) + LEFT('1-',LEN('1-') - 1)
As an ActiveX Script for DTS consider...
Dim Length
Dim Alpha
Dim Numeric
Function Main()
Length = Len(DTSSource("Col001"))
Alpha = Right(DTSSource("Col001"),1)
Numeric = Left(DTSSource("Col001"),Length - 1)
If Alpha = "-" ThenDTSDestination("Col001") = Alpha & Numeric
Else
DTSDestination("Col001") = DTSSource("Col001")
End If
Main = DTSTransformStat_OK
End Function
That'll do the job ;)
by jim.schromm
by jim.schromm
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending