[英]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.