比如怎么用扩展存储过程xp_sendmail

解决方案 »

  1.   

    扩展存储过程都是VC写的,在通过sp_addextendedproc 注册到MSSQLSERVER,
    比如:SQL SERVER BOL的一个实例:Extended Stored Procedure Sample: xp_hello你可以到SQLSERVER BOL SEARCH
      

  2.   

    In Microsoft® Windows NT® 4.0, stop the SQL Server Service by using SQL Server Service Manager or Control Panel.
    Open the project that builds the extended stored procedure DLL, and build it.
    Copy the extended stored procedure DLL to the SQL Server \Binn directory (C:\Program Files\Microsoft SQL Server\Mssql\Binn by default).
    On the Project menu, click Settings.
    In the Project Settings dialog box, click the Debug tab.
    In the Category list, click General.
    In the Executable for debug session box, enter the path and file name of the Microsoft SQL Server™ executable file (for example, C:\Program Files\Microsoft SQL Server\Mssql\Binn\Sqlservr.exe). For information about sqlservr arguments, see sqlservr Application.
    In the Category list, click Additional DLLs.
    In the Local module name box, enter the names of any additional DLLs you want to debug.
    Click OK to store the information in the project.
    Set breakpoints as required in the DLL source files or on function symbols in the DLL.
    On the Build menu, click Go to start the debugger.