SQL Server database project gives warning 'Unresolved reference to object sp_executesql'
Asked Answered
D

1

8

SQL Server database project gives warning 'Unresolved reference to object sp_executesql' when using sp_executesql inside a stored procedure.

Demetrius answered 20/10, 2020 at 0:37 Comment(0)
D
11

Expand references under your database and add reference to system database 'master'

enter image description here

Demetrius answered 20/10, 2020 at 0:37 Comment(1)
And if you're working in a team, make sure everyone is on the same edition of Visual Studio so the path to that master.dacpac file is consistent. (i.e., no mixing "community" with "pro" with "enterprise") For some reason, MS placed those dacpacs inside that edition-specific path instead of a generic one. :/Toxemia

© 2022 - 2024 — McMap. All rights reserved.