Quantcast
Channel: SQLServerCentral » SQL Server 2012 » SQL Server 2012 - T-SQL » Latest topics
Viewing all articles
Browse latest Browse all 4901

VS2010 Build Warnings when building database projects referencing [sys] schema

$
0
0
I have a proc which uses a technique, which will be familiar to many here, to generate a framework for a lot of rows:[code="sql"] SELECT ... FROM sys.all_columns ac1 CROSS JOIN sys.all_columns ac2[/code]The proc is fast & works how I want. I do not actually use any of the columns in sys.all_columns.However, when I build the database project, I get warnings like this:[quote]Warning: SQL71502: Procedure: [schema].[proc name] has an unresolved reference to object [sys].[all_columns][/quote]Which is understandable - objects in the sys schema are not part of my database project.Which brings me to my question: is there a way to remove this warning without disabling all SQL71502 warnings?

Viewing all articles
Browse latest Browse all 4901

Trending Articles