【发布时间】:2010-10-14 06:34:44
【问题描述】:
我刚刚创建了一个由两个项目组成的新解决方案:
- SQL Server 2008 服务器项目
- 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 附带的项目模板。
我想我的问题是导致这些错误的原因是什么?
更新:我通过重命名存储过程修复了错误,但我仍然想知道是什么导致了错误。
【问题讨论】: