Not logged in - Login


R
e
q
u
e
s
t

a

d
e
m
o
< back

CLR Reference: Country Code

{TOC}

"Country Code"

CLR function

<.CLRSQLCLR: function:

SELECT xxxxx(xxx,xxx,xxx)>[dbo].[CountryRandom] (<@country, nvarchar(4000)>)

Expected input

<.expecteddata: input:Valid dataCountry type,name rule,or sample>Code (based on ISO 3166)

Expected output

<.expectedValid output:Country dataName type,or rule,Code sample>(based on ISO 3166) string (nvarchar(MAX))

Error handling

<.errorReturns handling>an empty string when passing empty or NULL value.

Example

<.example>SQLCLR:

SELECT [dbo].[CompanyNameRandom] ('US')

Download a Trial