简体   繁体   English

具有大型零售数据库的SSDT?

[英]SSDT with large, retail databases?

I'm just getting my feet wet with SSDT because I'm excited about its source control and deployment capabilities. 我只是对SSDT有所了解,因为我对其SSDT的源代码控制和部署功能感到兴奋。 I'm working on an instance of Microsoft Dynamics GP which consists of a couple thousand tables, about 20k stored procs, etc. I won't be modifying the schema very much, instead only working to modify a handful of the procs (probably a couple hundred max). 我正在研究Microsoft Dynamics GP的实例,该实例由几千个表,大约2万个存储的proc等组成。我不会修改太多架构,而只是修改少数proc(可能是一个proc)。最多几百个)。

However, creating a new SSDT project off of our live instance to facilitate this work creates a project that won't build, and the number of errors is fairly massive. 但是,在活动实例的基础上创建一个新的SSDT项目来促进这项工作将创建一个无法构建的项目,并且错误数量相当大。 Suffice to say correcting 21570 errors won't be feasible for the scope of this project given the relative size of the work we actually mean to do--especially since we didn't author it ourselves to begin with. 考虑到我们实际上打算做的工作的相对规模,仅要说纠正21570错误在该项目的范围内是不可行的,尤其是因为我们并不是自己开始编写的。

I don't want to give up hope, though--I'm curious if it's possible just to use SSDT to house & maintain the procs we're using, and deploy only the scripts we modify even though there's much more to the databases that we don't touch. 不过,我不想放弃希望-我很好奇是否可以仅使用SSDT来容纳和维护我们正在使用的proc,并且仅部署我们修改过的脚本,即使数据库还有更多功能我们不碰。 Is this at all realistic? 这完全现实吗?

Try creating a dacpac of the existing database (use SQLPackage to generate it), then reference that as a DB Reference in your project as "same database". 尝试创建现有数据库的dacpac(使用SQLPackage生成它),然后在您的项目中将其作为数据库引用引用为“相同数据库”。 I blogged about using SQLPackage and database references here: http://schottsql.blogspot.com/2012/10/ssdt-external-database-references.html 我在这里写了关于使用SQLPackage和数据库引用的博客: http ://schottsql.blogspot.com/2012/10/ssdt-external-database-references.html

That way your project will contain just the objects you are creating but still reference the existing objects. 这样,您的项目将仅包含您正在创建的对象,但仍引用现有对象。

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

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