e
q
u
e
s
t
a
d
e
m
o < back
CLR Reference: State Province Dynamic
{TOC}
"State Province Dynamic"
CLR function
SQLCLR:
SELECT [dbo].[SINDynamic][dbo].[StateProvinceDynamic] (<@sin,(<@stateProvince, nvarchar(4000)>)
Expected input
Data: Valid SocialUSA Insurancestate Numberor (canterritory containname extraor characterscode separators)or Valid Canadian Province (based on ISO 3166-1)
Expected output
Generic USA SINor Canadian state/province or USA territory name (format depends on input, based on ISO 3166-1) (nvarchar(MAX))
Error handling
Returns an empty string when passing empty or NULL value.
Fails on invalid SINstate/province formatname or code
Example
SQLCLR:
SELECT [dbo].[SINDynamic][dbo].[StateProvinceDynamic] ('123-456-789')('California')