2011年5月10日 星期二

Informix Debug方式

在stored procedure 中, 任一要trace的地方
set debug file to "xxxxx.out";

如果要trace所有的變數
trace on;



如果要trace些變數,則利用參數concation方式,
trace variableName1||variableName2 ;

最後記得要 將trace 關掉..
trace off;


create procedure spTest()
   define variableName1 varchar(10); 
  define variableName2 varchar(10);

  set debug file to 'abc.out';

  foreach
     select col1, col2 
         into  variableName1,variableName2
       from  testTable

      trace variableName1||variableName2 ;
  end foreach;

  trace off;
end procedure ;

沒有留言:

張貼留言

publish error allowDefinition='MachineToApplication'

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