Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8467679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:42:48+00:00 2026-06-10T15:42:48+00:00

I have a database project in SSDT and when I import a view that

  • 0

I have a database project in SSDT and when I import a view that references objects in a different database, I get error SQL71561, with a description along these lines:

Error 4 SQL71561: View: [schema].[viewname] has an unresolved
reference to object [other_db].[schema].[table].[column]

I spent some time trying to figure this out, so to help others running into this I will post the answer that worked for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:42:49+00:00Added an answer on June 10, 2026 at 3:42 pm

    To resolve this, I added a reference to the other database, clearing out the “Database variable” field in the dialog. If I didn’t clear this field, when doing a schema compare, SSDT would generate the update script using the database variable name, which would fail.

    1. Add a Database Reference to the project.
    2. In my case the other database was another project in the same solution, so I was able to select it in the first drop down on the “Add Database Reference” dialog.
    3. Make sure the text in the “Database name” field is correct.
    4. Clear out the “Database variable” field.

    Look at the “Example usage” text and verify that it looks as expected. Click “OK” to add the reference and that should take care of the ‘unresolved reference’ errors.

    After doing this, I was able to do a schema comparison, but trying to build the project produced the following error:

    Error 408 SQL00208: Invalid object name ‘db.schema.table’.

    Going to the project properties and unchecking “Enable extended Transact-SQL verification for common objects” allowed the project to build successfully.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database project in my VS2010 solution. I recently changed a view
I have a database project that goes through iterations (only one so far) and
I have a database project in visual studio (2008) that I am using to
We have a database project in Visual Studio 2008 that has been working great.
I have a visual studio 2008 database project that is under version control (git).
We have a relatively new database project that we have been writing views and
I have a database project that generates these files and added to gitignore. However
So I have a VS2010 Database Project that I am deploying, with a few
I have a development database that re-deploy frequently from a Visual Studio Database project
I have an Access database project that is getting a bit to large to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.