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

沒有留言:

張貼留言

publish error allowDefinition='MachineToApplication'

一個老舊的aspx web form專案,調了一些功能建置成功,但進行部署時顯示以下錯誤。 在應用程式層級之外使用註冊為 allowDefinition='MachineToApplication' 的區段發生錯誤。錯誤的原因可能是虛擬目錄尚未在 IIS 中設定為...