1

I have two databases projects in a single solution, Database A and Database B. They both have queries that point to each other like this

Select * FROM [Database A].dbo.Table 

Visual Studio will give you a warning like this SQL04151: Procedure xyz contains an unresolved reference to an object...... This warning is resolved in Database B if you add a database reference to Database A.

However, there are still warnings from Database A complaining about an unresolved reference to something in Database B.

If I try to add a reference to Database B from Database A it won't let me because it says 'A reference to library 'Database B' cannot be added. Adding this project as a reference would cause a circular dependency.

So I guess my question is how to I resolve the reference so that the warnings will stop be displayed?

4

1 に答える 1