sql server - The schema update is terminating because data loss might occur -
sql server - The schema update is terminating because data loss might occur -
i maintain bumping error caused error have made while building application in lightswitch
. associated relationships. ususally moving along , done number of things before publish app , see error. time hard calulate did wrong. there way trace error see need alter in tables?
net sqlclient info provider: msg 50000, level 16, state 127, line 6 rows detected. schema update terminating because info loss might occur.
thank you.
this error occurs when alter you've made entity's property (in table designer) cause entity's table in published database dropped & recreated, , table has info in it. way sql server works, it's not under lightswitch's control. however, lightswitch errs on side of caution, & doesn't permit operation might cause potential loss of data.
the types of things might trigger are:
renaming property changing required not required etc changing property's data type & (if remember correctly) changing position of property in list of propertiesyou can however, add together property end of list of properties, without triggering table beingness dropped & recreated.
it's not thought create many changes before attempting publish application, reason suggest - ending not knowing you've done. want publish after making changes properties of entity. if publish local sql server instance (including sql express) on development machine, "test out" changes before publish production server.
the way i've gotten around (when used still used utilize ls's intrinsic data, applicationdata - utilize attached info sources) manually create alter column in database itself, using ssms (sql server management studio). can decide allow (potential) info loss. careful though what change, & create sure it's same alter made property in lightswitch. of course of study database before making changes it. if cause database out of sync lightswitch have major problems.
sql-server visual-studio-lightswitch
Comments
Post a Comment