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

沒有留言:

張貼留言

IIS 網站無法下載中文檔名檔案因為取消高位元字元

 網址+中文檔案名稱方式下載檔案顯示 404 - 找不到檔案或目錄。 但英數字檔案名稱則可下載。 因為設定GCB IIS,其中1項 將高位元字元預設取消勾選了。 27 TWGCB-04-014-0028 要求篩選與其他限制模組 允許高位元字元 這項原則設定決定查詢...