Using SSDT, how do I resolve SQL71561 errors when I have a view that references objects in a different database?

前端 未结 5 2327
我在风中等你
我在风中等你 2020-12-09 08:22

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:

5条回答
  •  自闭症患者
    2020-12-09 08:59

    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
    

提交回复
热议问题