I think this may be exactly what I've been looking for. Is it creating a SQL Server CLR function that calls the equivalent of the PC Miler miles() function in Excel? Did the described changes solve the issue? Also, what is the url for? As in, what would I need to use in order to make this work for me?
Sorry so many questions... I'm new to CLRs.