e
q
u
e
s
t
a
d
e
m
o < back
CLR Reference: State Province
{TOC}
"State Province"
CLR function
<.CLRSQLCLR: function:
SELECT xxxxx(xxx,xxx,xxx)>[dbo].[SINRandom] (<@sin, nvarchar(4000)>)
Expected input
<.expectedData: input:Valid dataSocial type,Insurance rule,Number sample>(can contain extra characters separators)
Expected output
<.expectedGeneric output:USA dataSIN type, rule, sample>(nvarchar(MAX))
Error handling
<.errorReturns handling>an empty string when passing empty or NULL value.
Fails on invalid SIN format
Example
<.example>SQLCLR:
SELECT [dbo].[SINRandom] ('987 654 321')