I have some stored procedure files in my database project, Visual Studio 2013. When I have a stored procedure using the CREATE PROCEDURE syntax VS underlines CREATE in red and gives this error:
The model already has an element that has the same name
When I use ALTER PROCEDURE it underlines ALTER and gives this error:
This statement is not recognized in this context
I have set the connection to my local DB server and the correct DB in which the stored procedures exist using right click/connection.
The DB project was created from scratch and not upgraded. The connection is also set correctly when checking the DB project's properties, Debug tab, target connection string.
What do I need to do so that I get neither error?