2009年11月6日 星期五

Debug a SQL Assembly

參考 Overview of T-SQL and CLR debugging in SQL Server 2005

由Server Explorer 来Debug
  1. 开启assembly 的project, 例asmStatistics.sln, 进入Visual Studio (也可以不必开启任何Solution或Peoject)
  2. 在工具列-》 VIew -》 Server Explorer (Ctrl+ Alt + F5 ), 开启Server Explorer Window
  3. 在Server Explorer Window 的Data Connections , 按右键,选Add Connection,连线到要Debug的Database
  4. 展开这个Database,在 Assembly 下选要Debug的Assembly,例如asmStatistics, 展开后,选要Debug的Function, 例如zspAsmStatistics_test
  5. 在zspAsmStatistics_test按右键,选’‘Step Into Stored Procedure‘‘,即可进入Debugg Mode

沒有留言:

張貼留言

VS CODE離線安裝套件方式-續

去年 vscode離線安裝 powershell nupkg 今年在一台無外網的 windwos 2025上安裝時遇到了powershell版本一直讀取到了5.1的版本,鬼打牆了一下午,在VM還原重測測了好幾回,應該是可行了。 將下載到的免安裝powershell 解壓縮到...