我正在尝试删除几行

使用

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)

删除行时会发生什么?

钥匙是唯一的,所以这不是问题

我使用手动删除语句删除了行,但对这里发生的情况很好奇

有什么想法吗 ?

这是使用SQL 2008 R2 Express Edition

更新 - 表上没有触发器

有帮助吗?

解决方案

如果您想确切地知道如何删除它们,请尝试在删除SSM时运行SQL Profiler。

您的桌子上有删除扳机吗?您要登录审核表的变量之一可能是通过GUI而不是通过查询窗口的变量。

无论如何,提供表定义和被删除的行可能会帮助其他人找到问题的解决方案。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top