当我将记录插入数据库时​​出现以下错误 [英] When I Insert Records Into Database Comes Following Error

查看:105
本文介绍了当我将记录插入数据库时​​出现以下错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



问题是什么:非常好吗



System.Data。 SqlClient.SqlException:更新或插入视图或函数'Vw_InPatient'失败,因为它包含派生或常量字段

Dear Frnds,

what is the problem: plese veryfy it

System.Data.SqlClient.SqlException: Update or insert of view or function 'Vw_InPatient' failed because it contains a derived or constant field

推荐答案

参考



http://social.msdn.microsoft.com/Forums/sqlserver/en-US/7edcfc6f-71f9-4fe0 -ae82-2ecaf2b1a84b / update-or-insert-of-view-failed-because-it-contains-a-derived-or-constant-field?forum = transactsql [ ^ ]


我认为在您的视图或函数中,更新的列可能具有标识。如果列具有标识,则它会自动增加到指定的速度,否则它与其他列具有任何外键关系。检查表格设计。
I think in your view or function, the updated column may have identity. if the column have an identity then it automatically increases to specified speed or else it have any foreign key relation with other columns. Once check the table design.


这篇关于当我将记录插入数据库时​​出现以下错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆