If your project is using SSDT database project some times you may encounter the error “This statement is not recognized in this context”.
To fix this, right click and view the Properties dialog for the SQL script. Change the Build Action property to None.
Cheers
Samitha