Visual Studio 2012 Express突然与此版本的Windows不兼容?(Visual Studio 2012 Express is suddenly “incompatible with this version of Windows”?)
我在Windows 7上运行Visual Studio Express 2012.我已经运行了几个月没有问题。
上周五,当我关闭电脑时,安装了很多Windows更新。 今天早上,当我启动并打开VS2012解决方案时,我收到了以下错误消息:
This program has known compatibility issues
...
Visual Studio 2012 Express for Windows Desktop is incompatible with this version of Windows.
Run Program
有一个按钮,当我点击它,解决方案正常打开。 我没有改变任何关于我的Windows配置。 每次打开解决方案时都会发生这种情况。 MS在上周五应用的一批更新中发布了一个有缺陷的补丁吗?编辑:我不知道为什么人们投票来关闭这个问题。 已经链接的答案与我的问题无关; 这个答案似乎是为了在VS2010中打开一个VS2012项目。 我试图在VS2012中打开一个VS2012项目。 如果您真的认为该问题需要关闭,请让我知道为什么在评论中,以便我可以适当地改变它。
星期五安装的.NET更新是:
- KB2805226
- KB2805221
- KB2804582
更新:我或多或少放弃了,并在错误窗口上单击“不再显示此窗口”复选框。 Visual Studio似乎运行正常。
I'm running Visual Studio Express 2012 on Windows 7. I've been running it with no problems for several months now.
Last Friday, when I shut down my PC, a lot of Windows updates were installed. This morning, when I started up and opened a VS2012 solution, I got this error message:
This program has known compatibility issues
...
Visual Studio 2012 Express for Windows Desktop is incompatible with this version of Windows.
There's a button for
Run Program
, and when I click it, the solution opens normally. I haven't changed anything about my Windows configuration. This happens every time I open a solution. Did MS release a flawed patch in the batch of updates that got applied last Friday?EDIT: I'm not sure why people are voting to close this question. The answer that's been linked to isn't related to my issue; that answer seems to pertain to trying to open a VS2012 project in VS2010. I'm trying to open a VS2012 project in VS2012. If you really think that the question needs to be closed, please let me know why in the comments, so that I can change it appropriately.
The .NET updates installed on Friday were:
- KB2805226
- KB2805221
- KB2804582
UPDATE: I gave up, more or less, and clicked the "Don't show this window again" checkbox on the error window. Visual Studio seems to be running ok.
原文:https://stackoverflow.com/questions/16901518
最满意答案
你能提供这些文章的参考吗?
我没有理由改变尝试和真实的方法。 毕竟,主键是关系数据库的基本设计功能。
使用UNIQUE服务于相同的目的听起来真的是对我的伤害。 他们的理由是什么?
编辑:我的注意力已经回到了这个旧的答案。 也许您阅读的关于PK与UNIQUE的讨论可以解决人们制作PK的唯一目的,以便强制执行其唯一性。 这样做的答案是,如果它是一个关键字,那么使其成为关键,否则使其成为唯一。
Can you provide references to these articles?
I see no reason to change the tried and true methods. After all, Primary Keys are a fundamental design feature of relational databases.
Using UNIQUE to serve the same purpose sounds really hackish to me. What is their rationale?
Edit: My attention just got drawn back to this old answer. Perhaps the discussion that you read regarding PK vs. UNIQUE dealt with people making something a PK for the sole purpose of enforcing uniqueness on it. The answer to this is, If it IS a key, then make it key, otherwise make it UNIQUE.
相关问答
更多-
主键是表上唯一的字段,但在表中认为该行为键时,它是特殊的。 这意味着其他表可以使用此字段为自己创建外键关系。 一个唯一的约束只是意味着一个特定的领域必须是唯一的。 A primary key is a unique field on a table but it is special in the sense that the table considers that row as its key. This means that other tables can use this field to cre ...
-
具有唯一索引和主键的列会产生唯一约束违例(Column with Unique Index and Primary Key gives Unique Constraint Violation)[2022-08-17]
请执行一个简单的声明: select * from admin.message_list where id = 1; 如果它不返回行,则应检查约束PK_ID是否引用ID列,如果是,请要求Oracle支持人员修复错误。 Please execute a simple statement: select * from admin.message_list where id = 1; If it wouldn't return rows, you should check if constraint PK_I ... -
主键与唯一约束?(Primary Key versus Unique Constraint?)[2024-01-03]
你能提供这些文章的参考吗? 我没有理由改变尝试和真实的方法。 毕竟,主键是关系数据库的基本设计功能。 使用UNIQUE服务于相同的目的听起来真的是对我的伤害。 他们的理由是什么? 编辑:我的注意力已经回到了这个旧的答案。 也许您阅读的关于PK与UNIQUE的讨论可以解决人们制作PK的唯一目的,以便强制执行其唯一性。 这样做的答案是,如果它是一个关键字,那么使其成为关键,否则使其成为唯一。 Can you provide references to these articles? I see no reaso ... -
sql server获取主键时返回错误sql唯一约束(Sql server get primary key when return error sql unique constraint)[2023-12-07]
我认为这是处理这种情况的错误方法。 你应该预先测试它,但如果你真的想要它: DECLARE @username nvarchar(50) = 'toto'; DECLARE @email nvarchar(50) = 'toto@test.com'; begin try insert into [user](username, email) values (@username, @email) end try begin catch if ERROR_NUMBER() = 2601 ... -
问:表可以有主键属性和唯一约束到另一个属性? 答:是的: 一个表最多只能有一个主键。 主键可以由多个列组成(一个“复合主键”) 任何列都可能具有“唯一约束”,无论它是否是主键列 主键始终是“唯一”的,并且始终具有“唯一”约束 第1行的错误:ORA-02261:表中已存在此唯一或主键 答:检查你的模式。 您已经拥有主键,并且/或者您已经定义了相同的唯一约束。 例如: http://www.shutdownabort.com/dbaqueries/Structure_Constraints.php col ty ...
-
您在主键约束后错过了逗号。 CREATE TABLE [MyTable] ( [Id] [int] IDENTITY, [Column1] [int] NOT NULL, [Column2] [int] NOT NULL CONSTRAINT [PK_MyTable_Id] PRIMARY KEY ([Id]), CONSTRAINT [UQ_MyTable_Column1_Column2] UNIQUE ([Column1], [Column2]) ) You ...
-
如果您具有“CREATE TABLE”权限,请使用dbms_errlog包。 运行脚本: begin dbms_errlog.create_error_log('DBO.T_LIAV_AGENT_STATE_APPROVAL'); end; / 使用附加子句运行INSERT脚本: INSERT INTO dbo.T_LIAV_AGENT_STATE_APPROVAL SELECT ... FROM ... LOG ERRORS INTO err$_T_LIAV_AGENT_STATE_APPROVAL ...
-
SQLite:如何使用正确的名称提取主键和唯一约束(SQLite: How to extract primary keys and unique constraints with correct names)[2023-10-02]
索引和约束是不同的对象。 SQLite没有机制来检索约束名称。 你必须解析SQL。 The index and the constraint are different objects. SQLite has no mechanism to retrieve the constraint name. You'd have to parse the SQL. -
为此,我建议您创建一个Identity列,并将其作为群集主键。 表被认为是某种主键的最佳实践,但为这样的表创建聚簇索引是允许在多表查询(带连接)中使用此表的最快方法。 以下是如何添加它的示例: ALTER TABLE dbo.orderstatus ADD CONSTRAINT PK_orderstatus_OrderStatusID PRIMARY KEY CLUSTERED (OrderStatusID); GO 文章详细介绍MSDN 这是解释主键主键入门的另一种资源 For this, I wou ...
-
主键列上的唯一约束违例,序列提供了id(Unique constraint violation on primary key column with sequence provided id)[2022-04-12]
事实证明,不知何故,序列变得不同步。 MY_SEQUENCE.nextVal必须高于表中的最高ID。 这意味着, select MY_SEQUENCE.nextVal from DUAL; 必须高于select max(ta.ID) from TABLE_A ta; 您需要更新序列: ALTER SEQUENCE MY_SEQUENCE INCREMENT BY 10000; 我没有运行上述语句的权限,所以我只是按住select MY_SEQUENCE.nextVal from DUAL;的执行按钮sel ...