您的位置:首页 > 其它

"column "x" does not belong to table "y""

2010-06-29 14:37 573 查看
an error such as "column "x" does not belong to table "y"" occurs randomly within an ASP.NET site care should be taken to ensure that a single SQLConnection object is not accessed from multiple threads.

There are a couple of scenarios where this might occur:

SQLConnection declared within a shared class.

SQLConnection stored in a session or application variable.

Ensuring that a new SQLConnection object is created for every page request when needed is the best way to prevent these errors from happening.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐