简体   繁体   English

数据库项目部署

[英]Database project deployment

I have database project in visual studio 2010. It has tables views stored procedures etc. I have created a full text index on view and in stored procedure I am using like this:我在 Visual Studio 2010 中有数据库项目。它有表视图存储过程等。我在视图和存储过程中创建了一个全文索引,我正在使用如下:

create proc myproc

as

select * from my view 
where contains(tblperson.fname,'Steve')

end

When I deploy, I get error that I can't use contains as view is not full text indexed.当我部署时,我得到了我不能使用包含的错误,因为视图没有被全文索引。 I want to know if there is a sequence in which database project is deployed?我想知道是否有部署数据库项目的顺序? means first stored proc is deployed or views are deployed.表示部署了第一个存储过程或部署了视图。 Can I change this sequence.我可以改变这个顺序吗?

Please suggest.请建议。

The Visual Studio Database projects are great. Visual Studio 数据库项目很棒。 I have just migrated from Db_Deploy integrated with SVN to TFS Visual Studio Database projects, The database projects work by creating a self contained db schema file and when you use the VsDbCmd command for deployment.我刚刚从与 SVN 集成的 Db_Deploy 迁移到 TFS Visual Studio 数据库项目,数据库项目通过创建一个自包含的数据库模式文件以及使用 VsDbCmd 命令进行部署来工作。 it will do a schema comparison between the project schema and the database schema to generate the delta script for you, The order in which the comparison takes place is Tables, Procs then Views.它将在项目模式和数据库模式之间进行模式比较,为您生成增量脚本,比较发生的顺序是表、Procs 然后是视图。 ... ...

I would suggest that you apply this script direct on to the database and then use the schema comparison from database to project to soak in the changes.我建议您将此脚本直接应用于数据库,然后使用从数据库到项目的模式比较来吸收更改。 This way the visual studio database project will create the script for you.这样,Visual Studio 数据库项目将为您创建脚本。 Read more about the db comparison and walkthrough on msdn http://msdn.microsoft.com/en-us/library/aa833435.aspx .在 msdn http://msdn.microsoft.com/en-us/library/aa833435.aspx上阅读有关数据库比较和演练的更多信息。

PS - How are you managing deployments of your db project? PS - 你如何管理你的数据库项目的部署? I have automated the entire deployment suit, interested to know how others are doing it.我已经自动化了整个部署套件,有兴趣了解其他人是如何做到的。

HTH. HTH。

Cheers, Tarun干杯,塔伦

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

相关问题 自动化数据库项目部署 - Automating Database Project Deployment Visual Studio 2008数据库项目部署基准 - Visual Studio 2008 Database project Deployment Baseline 数据库项目-后期部署-静态数据-XML - Database Project - Post Deployment - Static Data - XML Visual Studio数据库项目中是否有一种方法可以在部署期间排除某些对象? - Is there a way in a visual studio database project to exclude certain object during deployment? Visual Studio数据库项目-使用德语字母的发布后脚本问题 - Visual Studio Database Project - Post deployment script problems with German letters 数据库项目是否可以使用machine.config连接字符串进行部署? - Can a Database project use a machine.config connection string for deployment? SQL Server数据库项目部署前和部署后脚本 - SQL Server database project pre- and post-deployment script 如何为数据库项目创建预打包的部署脚本? - How to create a pre-packaged deployment script for a database project? 如何设置部署选项以编写Visual Studio 2010数据库项目的增量版本? - How can I set my deployment options to script the incremental release of a Visual Studio 2010 database project? 发布数据库项目失败,因为部署脚本尝试删除并重新创建未修改的表 - Publish of Database Project fails because deployment script attempts to drop and re-create an unmodified table
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM