使用 SQL 2000 桌面引擎启用调试(在安装了 Visual Studio .NET 的计算机上)
将 MSSDI98.DLL 从 Microsoft Visual Studio .NET 2003\sqlserver 目录复制到 \binn 目录中。 使用 SQL 2000 桌面引擎启用调试(在没有安装 Visual Studio .NET 的计算机上)
在 Visual Studio .NET CD 或 DVD 上找到 MSSDI98.DLL 并将其复制到 \binn 目录中。 在 Visual Studio .NET CD 或 DVD 上找到 SQLDBG.DLL 并将其复制到以下目录: program files\common files\microsoft shared\sql debugging 通过在命令提示处输入下列命令重新注册 SQLDBG.DLL: regsvr32 sqldbg.dll 向调试器用户授予存储过程 sp_sdidebug 的执行权限: GRANT EXECUTE ON sp_sdidebug TO myUserName
我的步骤:
1) regsvr32 sqldbg.dll 2) GRANT EXECUTE ON sp_sdidebug TO dbo