Not logged in - Login


View History
R
e
q
u
e
s
t

a

d
e
m
o

CLR Reference: State Province Dynamic

{TOC}

"State Province Dynamic"

CLR function

SQLCLR:

SELECT [dbo].[StateProvinceDynamic] (<@stateProvince, nvarchar(4000)>)

Expected input

Data: Valid USA state or territory name or code or Valid Canadian Province (based on ISO 3166-1)

Expected output

Generic USA or 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 state/province name or code

Example

SQLCLR:

SELECT [dbo].[StateProvinceDynamic] ('California')

Download a Trial