【问题标题】:The model already has an element that has the same name该模型已经有一个同名的元素
【发布时间】:2010-10-14 06:34:44
【问题描述】:

我刚刚创建了一个由两个项目组成的新解决方案:

  1. SQL Server 2008 服务器项目
  2. SQL Server 2008 数据库项目

数据库项目具有对服务器项目的数据库引用。当我尝试构建解决方案时,出现三个错误:

Error   291 SQL04105: The model already has an element that has the same name
dbo.sp_scramble

Error   292 SQL04105: The model already has an element that has the same name
dbo.sp_scramble.@Table.

Error   293 SQL04105: The model already has an element that has the same name
dbo.sp_scramble.@Field.  

服务器和数据库项目都是使用“导入对象和设置...”选项创建的。

此外,单独的服务器项目构建时不会出现错误。

我正在使用 VS 2010 附带的项目模板。

我想我的问题是导致这些错误的原因是什么?

更新:我通过重命名存储过程修复了错误,但我仍然想知道是什么导致了错误。

【问题讨论】:

    标签: visual-studio-2010


    【解决方案1】:

    我通过重命名存储过程来修复错误。

    【讨论】:

    • 很高兴知道,但问题的原因会更有用。
    猜你喜欢
    • 1970-01-01
    • 2015-11-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-21
    • 2013-05-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多