Not logged in - Login


View History
R
e
q
u
e
s
t

a

d
e
m
o

CLR Reference: IP Addess

{TOC}

"IP Addess"

CLR function

SQLCLR:

SELECT [dbo].[IPRandom] (<@ip, nvarchar(4000)>)

Expected input

data: Valid IPv4 or IPv6

Expected output

Common IP of the same format as input (nvarchar(MAX))

Error handling

Returns an empty string when passing empty or NULL value.

Example

SQLCLR:

SELECT [dbo].[IPRandom] ('2001:db8:0:1:1:1:1:1')

Download a Trial