我实现了sqlDependency的第一个例子,我有这个Excepetion"文本列类型不受SqlTableDependency"支持。在声明" SqlTableDependency" 这是我的代码:
string connectS= "Data Source =.; Initial Catalog = mydb; MultipleActiveResultSets = True; Persist Security Info = True; User ID = sa; Password = mypass";
using (var tableDep = new SqlTableDependency<Primitive>(connectS, "mytable"))
{
tableDep.OnChanged += OnChange;
tableDep.OnError += OnError;
tableDep.Start();
Console.WriteLine("WAIT");
Console.WriteLine("Press");
Console.ReadKey();
tableDep.Stop();
}...
Excpetion排在第二行: (var tableDep = new SqlTableDependency(connectS,&#34; mytable&#34;))
是否有人遇到同样的问题?