I have a Script.PostDeployment.sql which references DataFactoryRights.sql
ScriptPostDeployment.sql, build action PostDeploy:
:r .\DataFactoryRights.sql
DataFactoryRights.sql, build action None:
CREATE USER [dataFactory] FROM EXTERNAL PROVIDER;
When I try to build, I get the error:
Severity Code Description Project File Line Suppression State Error SQL72007: The syntax check failed 'Incorrect syntax near FROM.' in the batch near: 'CREATE USER [dataFactory] FROM EXTERNAL PROVIDER;'
If I comment out like --:r .\DataFactoryRights.sql, it builds ok