Not logged in - Login


R
e
q
u
e
s
t

a

d
e
m
o
< back

CLR Reference: US Phone Nu Dynamic

{TOC}

"US Phone Nu Dynamic"

CLR function

<.CLRSQLCLR:

SELECT function:[dbo].[UsaPhoneDynamic] xxxxx(xxx,xxx,xxx)>(<@usaPhone, nvarchar(4000)>)

Expected input

<.expecteddata: input:numeric dataUSA type,Phone rule,(can sample>contain separators). Length without separators from 9 to 15 digits.

Expected output

<.expectedGeneric output:USA dataPhone type,of rule,the sample>same format as input (nvarchar(MAX))

Error handling

<.errorReturns handling>an empty string when passing empty or NULL value. Fails on digits count less than 9 or more than 15

Example

<.example>SQLCLR:

SELECT [dbo].[UsaPhoneDynamic] ('898.456.4456')

Download a Trial