该模型已经有一个具有相同名称的元素

时间:2010-08-24 21:34:18

标签: visual-studio-2010

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

  1. SQL Server 2008服务器项目
  2. SQL Server 2008数据库项目
  3. 数据库项目具有服务器项目的数据库引用。当我尝试构建解决方案时,我得到三个错误:

    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附带的项目模板。

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

    更新:我通过重命名存储过程来修复错误,但我不知道导致错误的原因。

1 个答案:

答案 0 :(得分:0)

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