Click here to Skip to main content
16,016,345 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
JoCodes 15-Feb-14 1:19am    
Share your SQl Query.

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.
 
Share this answer
 
 
Share this answer
 
Comments
vignesh war 15-Feb-14 0:07am    
I can't understood der.. der also same question one person arised..
[no name] 15-Feb-14 0:07am    
yes.there in solution they mentioned about some rules for views..read that..
[no name] 15-Feb-14 4:33am    
It may be because of mismatch of datatypes.(i.e) the type of data you entered in the field is not match with the type of that field which is defined during table definition. or may be thers is some resctriction for you while inserting/Updating.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900