Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
CREATE Function dbo.IsInteger(@Value VarChar(18))
Returns Bit
As
Begin
Return IsNull(
(Select Case When CharIndex('.', @Value) > 0
Then Case When Convert(int, ParseName(@Value, 1)) <> 0
Then 0
Else 1
End
Else 1
End
Where IsNumeric(@Value + 'e0') = 1), 0)
End
Create Function IsNumber(@Value VarChar(18))
Returns Bit
As
Begin
Return (Select IsNumeric(@Value + 'e0'))
End
Declare @Temp Table(Data VarChar(18))
Insert Into @Temp Values('$12.09')
Insert Into @Temp Values('1.4e3')
Insert Into @Temp Values('2d4')
Insert Into @Temp Values('3.7')
Insert Into @Temp Values('412')
Select Data,
IsNumeric(Data) As [IsNumeric],
dbo.IsInteger(Data) As IsInteger,
dbo.IsNumber(Data) As IsNumber
From @Temp