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:
After trying all the above four answers I was still getting same error for two of my stored procedures.(From 1000+ errors to just 2 )
So what worked now is, I simply replaced the table alias name with the table name itself and hoila the build succeeded.
--From
table1 t1 join table2 t2
t1.col1 = t2.col1
--To
table1 t1 join table2 t2
table1.col1 = t2.col1