Quantcast
Channel: SQL Server Migration forum
Viewing all articles
Browse latest Browse all 1700

SSDT database project error: SQL71561 Unresolved reference to database objects(references to other database objects that are hard coded)

$
0
0

Hi,

We are in the process of migrating 2005 dbs to 2012 and have created database projects in SSDT and have imported the databases

Upon importing the projects fail to build due to numerous errors stating Unresolved reference to database objects(these objects refer to other database objects that are hard coded in the current project code)

I have tried adding references(by generating a dacpac file through SQLPackage command line variable) and by adding the database reference(there are a lot of posts suggesting these)

But none of these solutions resolve my reference issue.

Even the below post was close to a solution but that dint work for me:

http://social.msdn.microsoft.com/Forums/sqlserver/en-US/9188b21a-c864-4edd-81f3-8befb436c363/sql71561-sql71501-errors-containshas-an-unresolved-reference-to-object?forum=ssdt

For example i get an error for this simple code for a project called Referring_Database

Create view vw_view_name

AS

select column_name from Referred_Database.dbo.referred_table

I have  added Referred_Database both through .dacpac file or explicitly as a database reference but still its showing the below error

SQL71561: View: [dbo].[vw_view_name] has an unresolved reference to object [Referred_Database].[dbo].[referred_table]

Even if we were to rewrite or remove the three part qualifier how will i go ahead as removing the database name will affect my view definition

Is there any solution to resolve this reference issue?

Thanks,

Raja


Viewing all articles
Browse latest Browse all 1700

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>