zoukankan      html  css  js  c++  java
  • Error were encountered during the save process. Some database objects were not saved

    Have you ever faced a situation where you wanted to modify your existing table and was bugged with following error popup.

    Error were encountered during the save process. Some database objects were not saved.

      

    This is because by default saving changes to the table that requires table re-creation is disabled. To fixed this issue we need to enable the option to allow save on table re-creation. Below steps explain the same.

    Step 1: Open the SQL ServerManagement Studio.(Ctrl + R -> SSMS)

    Step 2:  Click on the Tools tab and click on Options...link.

    Step 3: This will open a popup window.  

    Step 4: From the left pane expand the Designers node.Table Options screen will be displayed in the right part of window.

      

    Step 5: Check the last option under Table Options section.

      



    Click the OK button and save the changes. This will fix your issue.

    原因二:

    要添加外键的表中的部分数据的id,在主表中不存在。添加关系之前要删除到这些对应不上的数据。

  • 相关阅读:
    C#进阶-Linq-join
    C#进阶-Linq
    C#-string-stringBuilder
    C#-继承-多态
    Spring基础
    JQuery基本操作
    Oracle数据库基础操作
    AJAX前端后端
    AJAX异步提交(前端)
    js基本操作
  • 原文地址:https://www.cnblogs.com/cw_volcano/p/2564014.html
Copyright © 2011-2022 走看看