Not logged in - Login / Register


View History

CLR Reference: Zip Code Dynamic

"Zip Code Dynamic"

CLR function

SQLCLR:

SELECT [dbo].[ZipCodeDynamic] (<@ZipCode, nvarchar(4000)>)

Expected input

Data: Valid USA or Canadian Zip Code

Expected output

Generic USA or Canadian Zip Code (depends on input) (nvarchar(MAX))

Error handling

Returns an empty string when passing empty or NULL value. Fails on invalid zip code format

Example

SQLCLR:

SELECT [dbo].[ZipCodeDynamic] ('11302')