1> 用vc6的Extend Stored Proc Wizard生成一个工程
2> 在里面写好你的存储过程,编译
3> 把生成好的dll拷贝至 MSSQL/Binn 目录
4> 使用exec sp_addextendedproc 'xp_example', 'xp_example.dll'
其中'xp_example'是你调用的存储过程名字,'xp_example.dll'是dll的名字
5> 最后执行,exec xp_example
2> 在里面写好你的存储过程,编译
3> 把生成好的dll拷贝至 MSSQL/Binn 目录
4> 使用exec sp_addextendedproc 'xp_example', 'xp_example.dll'
其中'xp_example'是你调用的存储过程名字,'xp_example.dll'是dll的名字
5> 最后执行,exec xp_example
本文介绍如何使用VC6和ExtendStoredProcWizard创建并部署扩展存储过程到MSSQL服务器。步骤包括:生成工程、编写存储过程、编译生成DLL、复制DLL至指定目录、通过SQL命令注册及调用存储过程。

2059

被折叠的 条评论
为什么被折叠?



