Only one statement is allowed per batch. A batch separator, such as 'GO', might be required between statements. When I added the file in VS I forgot to set Build Action = None from the file properties.