I have a table with IP Addresses stored as a BigInt. This is for 'natural' ordering. I also wrote a stored procedure that allows a user to search by IP's in the format of x.x.x.x where x is a number from 0-255 or a *, for a wildcard. I want to link this SP in a query.
Here is my layout:
Here is my layout:
Code:
t_Routers
DeviceID (PK, one to many)
blah
blah
t_Interfaces
DeviceID (FK to t_Routers)
IF_ID
IP_Address[code]
I need to pull DeviceID, blah, blah from t_Routers where the IP Address is = to the result of my SP. If it's important, the front-end is ASP.
Please help and thanks in advance,
Kevin