简体   繁体   English

如何使用WebDeploy部署带有全文索引的数据库

[英]How to deploy a database with fulltext indexes with WebDeploy

I'm trying to deploy a new asp mvc3 website using webdeploy. 我正在尝试使用webdeploy部署一个新的asp mvc3网站。 The problem is that the sql that is autogenerated when creating the package does not contain the fulltext indexes that I have created in the source database. 问题是创建包时自动生成的sql不包含我在源数据库中创建的全文索引。

But all the other tables, indexes, triggers and stored procedures are in the script...Is there something special that needs to be done in order to include the full text indexes? 但所有其他表,索引,触发器和存储过程都在脚本中......为了包含全文索引,是否需要执行一些特殊操作?

Assuming that you're using the Web Deploy dbFullSql provider, try including the FullTextIndexes=true setting in your command. 假设您正在使用Web Deploy dbFullSql提供程序,请尝试在命令中包含FullTextIndexes=true设置。 FullTextIndexes is one of the many SMO ScriptingOptions Properties that you can specify with the dbFullSql provider. FullTextIndexes是您可以使用dbFullSql提供程序指定的众多SMO ScriptingOptions属性之一。 You can use this one to have full-text catalogs included in the generated script, which sounds like what you're looking for. 您可以使用此脚本在生成的脚本中包含全文目录,这听起来就像您正在寻找的那样。

If you are deploying from Visual Studio or using MSBuild, see the MSDN Deployment FAQ: 如果从Visual Studio或使用MSBuild进行部署,请参阅MSDN部署常见问题解答:

http://msdn.microsoft.com/en-us/library/ee942158.aspx#can_i_deploy_the_fulltext_catalog_for_a_database http://msdn.microsoft.com/en-us/library/ee942158.aspx#can_i_deploy_the_fulltext_catalog_for_a_database

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM