Extended Stored Procedures

Extended stored procedures allow you to create your own external routines in a programming language such as C. The extended stored procedures appear to users as normal stored procedures and are executed in the same way. Parameters can be passed to extended stored procedures, and they can return results and return status. Extended stored procedures can be used to extend the capabilities of Microsoft® SQL Server™.

Extended stored procedures are dynamic link libraries (DLLs) that SQL Server can dynamically load and execute. Extended stored procedures run directly in the address space of SQL Server and are programmed using the SQL Server Open Data Services API.

After an extended stored procedure has been written, members of the sysadmin fixed server role can register the extended stored procedure with SQL Server and then grant permission to other users to execute the procedure. Extended stored procedures can be added only to the master database.

To add an extended stored procedure

    

See Also
Adding an Extended Stored Procedure to SQL Server How Extended Stored Procedures Work
Creating Extended Stored Procedures Sample Extended Stored Procedures
Debugging an Extended Stored Procedure  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.