In this blog post, let’s learn about the error message “21277 – Cannot publish the source object ‘%ls’. The value specified for the @type parameter (“indexed view schema only” or “indexed view logbased”) can be used only for indexed views. Either specify a value of “view schema only” for the @type parameter, or modify the view to be schema bound with a unique clustered index.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.
SQL Server Error Message
21277 – Cannot publish the source object ‘%ls’. The value specified for the @type parameter (“indexed view schema only” or “indexed view logbased”) can be used only for indexed views. Either specify a value of “view schema only” for the @type parameter, or modify the view to be schema bound with a unique clustered index.
Reason for the Error
To be update soon…
Solution
To be update soon…