2

我想刪除幾排字符串或二進制數據將在被截斷刪除

使用

SQL Server Management Studio中的,2個行我得到的消息

沒有行已刪除

A problem occurred attempting to delete row #X 
Error Source: .Net SqlClient Data Provider 
Error Message: String or binary data would be truncated 
The Statement has been terminated 


Correct the errors and attempt to delete the row again or press ESC to cancel the change(s) 

刪除行時可能發生什麼情況?

鍵是唯一的,這樣不是一個問題

我已經刪除了使用手動DELETE語句,但好奇什麼行這裏發生

有什麼想法?

這是使用SQL 2008 R2 Express版本

更新 - 沒有觸發器在桌子上

回答

1

嘗試運行SQL事件探查器,同時通過SSMS刪除,如果你想知道它究竟是如何刪除它們。

你在桌上有刪除觸發器嗎?這可能是因爲在通過GUI而不是通過查詢窗口時,登錄到審計表中的變量之一更長。

無論如何,提供表定義和被刪除的行可能會幫助其他人找到解決您的問題的方法。

+0

表上沒有觸發器,會嘗試sql profiler,謝謝 – Kumar 2010-06-18 20:27:57

相關問題