Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 user function

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-03-06 : 11:22:29
Weizman Jonathan writes "Hi,

I've developed a C function that computes the distance betwen 2 Lat/Lon on the earth.

I want to have a select function like:
Select * from Mytable where distance(@x,@y,mytable.lat,mytable.lon)<500

The problem is that i didn't find any way to use this function which lies in a DLL.

Creating the function in SQL would be difficult since there is a lot of computation.

Thanks

Jonathan"
   

- Advertisement -