我使用SqlTableDependency
跟踪表格更改,如下所示:
_dependency = new SqlTableDependency<IdeaInfo>(_ConnectionString, "Ideas");
_dependency.OnChanged += _dependency_OnChanged;
_dependency.Start();
事情变得非常顺利,直到我在我的监听表"Ideas"
上更改了列大小,现在我出现以下错误:
String or binary data would be truncated.
The statement has been terminated.
由依赖项自动生成的tr_dbo_Ideas_234726bd-11d2-4fba-a470-98bd32905b0b
事务抛出
看起来Service Broker
不知道新的列大小!!!!
有人可以告诉我我做错了吗?