PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
IP Subnet Test
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
IP Subnet Test
![]() |
IP Subnet Test |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
Does anyone have some code that would allow me to test if a specific IP address is within a specific IP range or a distinct subnet or similar ? Any help appreciated. Thanks Niclas |
|
|
|
#2 |
|
Guest
Posts: n/a
|
you can use the parsename function in sql server to do this.
parsename(@myIP, 3) = '192' AND parsename(@myIP, 2) = '168' etc |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

