sql - 当我想编辑 SQL Server 视图时,我收到此错误“乐观并发控制错误”
问题描述
我有两张桌子table_1
和Table_2
; 我在 SQL Server 中创建了这个视图:
SELECT dbo.Table_1.ID, dbo.Table_1.Title, dbo.Table_2.Descc
FROM dbo.Table_1
LEFT OUTER JOIN dbo.Table_2 ON dbo.Table_1.ID = dbo.Table_2.ID
但是当我想在Descc
列中输入数据时,出现错误
乐观并发控制错误
解决方案
This issue occurs if the following conditions are true:
The table contains one or more columns of the text or ntext data type.
The value of one of these columns contains the following characters:
Percent sign (%)
Underscore (_)
Left bracket ([)
The table does not contain a primary key.
Note This issue also occurs when you try to use Table Designer in Microsoft Visual Studio 2005 to update a table that is in a SQL Server 2005 database.
Workaround To work around this issue, create a new query window in SQL Server Management Studio. Then, run a SQL UPDATE statement to update the row in the table.
Note If you receive the first error message that is mentioned in the "Symptoms" section, you can click Yes to update the row. microsoft link
推荐阅读
- reactjs - 未处理的拒绝(TypeError):无法读取未定义的属性“电子邮件”
- sql - 加载到生产服务器时无法加载 DLL 'Microsoft.Data.SqlClient.SNI.dll
- php - 使用条件进入关联数组
- javascript - 当我单击特定卡片时,在另一个中呈现卡片详细信息
- c++ - LLVM getelementptr:第一个索引的整数类型
- node.js - fs.readFile() 是异步函数吗?
- flutter - 当firestore查询中的条件更新时,flutter-数据不会在流生成器中刷新
- python - 我试图在 discord.py 中创建一个楼梯命令
- c++ - 如何从 rand() 中获取“x”元素?
- javascript - AMP Analytics 未触发要在 Google Analytics 中跟踪的事件