@@Error  回傳最近一次 SQL 執行結果的錯誤代碼,若成功執行,則回傳 0
Returns the error number for the last Transact-SQL statement executed.
Returns 0 if the previous Transact-SQL statement encountered no errors.

@@RowCount  回傳最近一次 SQL 執行結果影響的資料列筆數
Returns the number of rows affected by the last statement.

arrow
arrow
    文章標籤
    T-SQL MS-SQL
    全站熱搜

    Aixo 發表在 痞客邦 留言(0) 人氣()