I am installed Microsoft SQL Server Management Studio 2016 of a new PC that I have. When I try to alter a view I get the following error
Syntax error in TextHeader of View 'ViewName`. Microsoft.SqlServer.Smo)
I get this error when I right click on the View > Script View As > Alter to > New Query Editor Window
Also, when I try to stored procedure, I get the same error listed above
I get this error when I right click on the View > Script Stored Procedure As > Alter to > New Query Editor Window
I tried to use SP_HELPTEXT 'ViewName'
this will give me the content of the view. But why is the GUI is not working on this PC but working on my work PC?
How can I correct this issue?
How can I fix this issue?