All,
I am converting an application which used to run all client side to process mostly within SQL Server. My question:
I have an Update that I run that Calculates the Mileage between 2 cities based on the Latitude and Longitudes of the 2 cities. The calculation is written, and my update runs fine.
I'm curious, is there any speed advantage at processing time by creating a user defined function with the formula and just passing in the 4 values to the function? Or is the only advantage to the function simplicity for the end user?
TIA,
CMG
I am converting an application which used to run all client side to process mostly within SQL Server. My question:
I have an Update that I run that Calculates the Mileage between 2 cities based on the Latitude and Longitudes of the 2 cities. The calculation is written, and my update runs fine.
I'm curious, is there any speed advantage at processing time by creating a user defined function with the formula and just passing in the 4 values to the function? Or is the only advantage to the function simplicity for the end user?
TIA,
CMG