As the question says what is the SQL Server equivalent of INET_ATON from mySql. The reason I need this is because i imported a IP data base from http://ipinfodb.com/ip_database.php into SQL Server 2005 and would like to query the table now. But based on their examples I am not sure how to do that.
Given the dotted-quad representation
of a network address as a string,
returns an integer that represents the
numeric value of the address.
Addresses may be 4- or 8-byte
addresses.mysql> SELECT INET_ATON('209.207.224.40'); -> 3520061480
Take a look at these stored procedure examples for achieving this
Example usage
If you want to reverse that and turn an integer into a dotted-quad, try this