I have sql project in visual studio and I created pre-deployment script
/*
Pre-Deployment Script Template
--------------------------------------------------------------------------------------
This file contains SQL statements that will be executed before the build script.
Use SQLCMD syntax to include a file in the pre-deployment script.
Example: :r .\myfile.sql
Use SQLCMD syntax to reference a variable in the pre-deployment script.
Example: :setvar TableName MyTable
SELECT * FROM [$(TableName)]
--------------------------------------------------------------------------------------
*/
:setvar TableName MyTable
SELECT * FROM [$(TableName)]
but Iam getting an error at :setvar
line
Incorrect syntax near ':'.
what am I missing ?