Not logged in - Login


View History
R
e
q
u
e
s
t

a

d
e
m
o

CLR Reference: Generic Phone Nu

{TOC}

"Generic Phone Nu"

CLR function

SQLCLR:

SELECT [dbo].[PhoneRandom] (<@phone, nvarchar(4000)>)

Expected input

data: numeric phone (can contain separators). Length without separators from 9 to 15 digits.

Expected output

Generic Phone of the same format as input (nvarchar(MAX))

Error handling

Returns an empty string when passing empty or NULL value. Fail on digits count less than 9 or more than 15

Example

SQLCLR:

SELECT [dbo].[PhoneRandom] ('+1.898.456.4456')

Download a Trial