Thanks. However, before posting, I did read through Creating and Maintaining Databases / Stored Procedures / Extended Stored Procedures and through Building SQL Server Applications / Open Data Services Programming / Programming Open Data Services. Unfortunately, the latter concentrates on C++.
I have created (in VB6 SP5) a global multiuse dll with one class and two public functions, copied it to C:\MSSQL7\Binn (but not registered it with RegSvr32) and registered it through Enterprise Manager so that its functions are listed under Extended Stored Procedures in the Master database. However, when I attempt to execute a method using Query Analyzer in the Master database with Exec MyFunction "Parameter", I get an error message :
Cannot find the function MyFunction in the library MyDll.dll. Reason: 127(error not found).
The function sits in a class, MyClass, within the dll. I have tried registering the class alone and MyClass.MyFunction as extended stored procedures. They appear but give the same error. I am being careful about case sensitivity. I suspect that I am not 'exporting' the function correctly but don't know how to do this in VB.
I have just come across sp_OACreate and its associated procedures in
but have not tried this yet. Is it as efficient or just the only way to go?