I have a database project in Visual Studio 2010 that deploys tables and stored procedures to the server without issue. However, none of the index scripts get included in the sql output script and therefore are not getting applied.

I have been unable to find anything that addresses this issue. I don't know what I'm missing. The index scripts' "Build Action" properties are set to "Build" and I don't see anything in the .sqldeployment or .sqlsettings files regarding index deployment specifically.

有帮助吗?

解决方案

I discovered the issue. When anyone on my team did a schema compare to their local databases, VS would block comment the index scripts because those indexes don't exist locally. Once I discovered this and uncommented the scripts, the indexes were once again included in the deployment.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top