SQL Extended Stored Procedures

sql server United Kingdom
  • 18 years ago

    Hi All,


    Dear All,


    I am testing the use of extended stored procedures using SQL Server 2000.
    I have written an Active X DLL written in VB6 which simply writes a record back to a table in the same SQL Server.
    I have registered the DLL.
    I have registered the DLL with SQL Server using sp_addextendedproc 'InsertRecord', 'c:\winnt\system32\Test.dll'.
    InsertRecord is a public function in a class in the DLL.
    When I try to execute the extended stored procedure using exec InsertRecord, I get the following error:
    Cannot find the function InsertRecord in the library c:\winnt\system32\Test.dll. Reason: 127(error not found).


    I have made sure that the function name in the DLL is exactly the same case as the one used in the sp_addextendedproc call.


    I have read on other forums that extended stored procedures cannot be written in VB, only C/C++, but I have not seen this confirmed anywhere. The Microsoft documentation states that any language capable of creating DLLs will work. Does VB conform to the Extended Stored Procedure API?


    Can anyone advise me on this one?
    Cheers,
    Matthew Smith.
    [email protected]


Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“An idiot with a computer is a faster, better idiot” - Rich Julius