e
q
u
e
s
t
a
d
e
m
o < back
CLR Reference: Country Code Dynamic
{TOC}
"Country Code"
CLR function
<.CLRSQLCLR: function:
SELECT xxxxx(xxx,xxx,xxx)>[dbo].[CountryDynamic] (<@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].[CompanyNameDynamic] ('Germany')