How do I calculate the number of hosts in a netmask using TSQL, WITHOUT using a table.
For example :
IP Number of Host
255.255.255.252 = 4
255.255.254.0 = 512
How do I calculate the number of hosts in a netmask using TSQL, WITHOUT using a table.
For example :
IP Number of Host
255.255.255.252 = 4
255.255.254.0 = 512
Copyright © 2021 Jogjafile Inc.
Here is the SQLFiddel Demo
Below is the sample Query :
Below is the Function :