SQL Server Data Tools (SSDT) warns of an unresolved table reference, but the table exists

和自甴很熟 提交于 2020-01-06 04:34:46

问题


SSDT complains that within the code of a stored procedure, a referenced table does not exist. Warning SQL71502.

But the table does exist, and its definition is valid. The table is not in another database, and it even appears correctly in intellisense menus. This is a very straightforward, small database and the problem is just between a local stored procedure and a local table. Both scripts are set to Build.

How can I remove this invalid warning?


回答1:


Solved - sometimes you just have to step away for a bit. A pair of parentheses in the stored procedure was tripping up SSDT. It did not cause a build error or syntax error, but was confusing the parser somehow such that the name of the table could not be correctly linked to the definition of the table.



来源:https://stackoverflow.com/questions/49309897/sql-server-data-tools-ssdt-warns-of-an-unresolved-table-reference-but-the-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!