質問

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