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

相关问题