简体   繁体   English

数据库项目和TFS如何帮助我们的开发团队?

[英]How could Database Projects and TFS help our dev team?

I have just started working with a new company in a very small IT department, and an even smaller dev team (just 2 developers including me). 我刚刚开始在一个非常小的IT部门和一个更小的开发团队(包括我在内的2个开发人员)中与一家新公司合作。 We mainly develop in house web applications for the company. 我们主要为公司开发内部Web应用程序。

Now my background is in desktop applications so this job comes with a slight learning curve for me having never developed ASP.Net web applications before. 现在我的背景是在桌面应用程序中,所以这项工作带来了一点点学习曲线,因为我之前从未开发过ASP.Net Web应用程序。 Currently we do not use TFS however I have made the suggestion and it is something we are going to be adopting soon. 目前我们不使用TFS,但我提出了建议,这是我们即将采用的。

I am also considering recommending we move our SQL databases into database projects as currently we do nightly backups to protect the data but all the updates are manual, we connect to the database and execute queries etc. 我也在考虑建议我们将SQL数据库移动到数据库项目中,因为目前我们每晚进行备份以保护数据,但所有更新都是手动的,我们连接到数据库并执行查询等。

Im not a DBA but in my last job we were in the process of migrating our databases to database projects and the DBAs seemed to love the idea. 我不是DBA,但在我上一份工作中,我们正在将数据库迁移到数据库项目,而DBA似乎喜欢这个想法。 What would the benefits and potential downfalls of this be? 这会带来什么好处和潜在的挫折? Would it aid us with updating databases in our live enviroment after development has been done? 在开发完成后,它是否有助于我们在现场环境中更新数据库? Obviously we dont want to loose any data but just update tables / Stored Procs etc. 显然我们不想丢失任何数据,只是更新表/存储过程等。

As a side question I have very limited knowledge of TFS, and although we are going to be using it to handle our version control is it possible to use TFS to update our live websites automatically once development has finished? 作为一个侧面问题,我对TFS的知识非常有限,虽然我们将使用它来处理我们的版本控制,但是一旦开发完成,可以使用TFS自动更新我们的实时网站吗?

Sorry if this is quite a broad question, I am attempting to research this myself but I would like to hear from people who actually use the products and do these things. 对不起,如果这是一个相当广泛的问题,我试图自己研究一下,但我想听听实际使用这些产品并做这些事情的人。

Thanks 谢谢

About database projects: I, and several dba's I know, have had mixed experiences with them. 关于数据库项目:我和我知道的几个dba有过不同的经验。 I'm not sure they are exactly where they should be at this time but it may be simply a function of how I work. 我不确定它们到底应该在哪里,但它可能仅仅是我工作方式的一个功能。 The deployment model is... difficult and can result in some unexpected behavior. 部署模型很难,可能会导致一些意外行为。 If you go this route test test test to make sure you understand exactly what's happening. 如果你进行这条路线测试测试,以确保你完全了解发生了什么。

If you are just trying to get version control for the database you might consider SQL Source Control from Red Gate. 如果您只是尝试获取数据库的版本控制,则可以考虑使用Red Gate的SQL Source Control It looks pretty nice and hooks into TFS. 它看起来很漂亮,并挂钩到TFS。 I used one of the early versions (beta and 1.0) for awhile and was very happy with it. 我使用了一个早期版本(beta和1.0)一段时间,并对它非常满意。 Now that I think about it, I'm not sure why I don't have it here... ;) 现在我想起来了,我不知道为什么我这里没有它...;)

As far as deploying out of TFS, you can absolutely do this. 至于部署TFS,你绝对可以做到这一点。 We have a build server set up so that whenever code is checked in the build server automatically spins up to compile and deploy it out to one of our testing sites. 我们已经建立了一个构建服务器,以便在构建服务器中检查代码时自动进行编译并将其部署到我们的一个测试站点。 Look here for a primer to get you started. 在这里寻找一本入门书,帮助您入门。 This does require some configuration on your web server to properly support and the documentation is spotty at best. 这确实需要在您的Web服务器上进行一些配置以正确支持,并且文档最多也是不稳定的。

Once you are happy with the test area, you can hook something into changes to the Build Quality so that it pushes the code to a staging or even production server... Or simply have a build setup to recompile and deploy out there. 一旦您对测试区域感到满意,您就可以对构建质量进行更改,以便将代码推送到临时甚至生产服务器......或者只需要构建设置来重新编译和部署。 Although I don't recommend doing production pushes this way. 虽然我不建议以这种方式进行生产推动。 Not because of a technical issue, but rather a timing one. 不是因为技术问题,而是时间问题。 It's usually much faster to just copy / paste from one location to production when necessary thereby limiting downtime. 在必要时从一个位置复制/粘贴到生产通常要快得多,从而限制了停机时间。

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

相关问题 TFS 2010-带有共享库的VS解决方案应如何映射到“团队项目”中? - TFS 2010 - how should VS solutions with shared libraries be mapped into “team projects”? TFS和数据库项目(SQL Server) - TFS and DATABASE PROJECTS (SQL Server) 尝试打开Team Projects时出现TFS 2010错误“ TF31001:无法在以下位置连接到Team Foundation Server” - TFS 2010 Error when trying to open Team Projects “TF31001: Cannot connect to Team Foundation Server at…” 如何修复TF246017 Team Foundation服务器无法连接到数据库 - How to fix TF246017 The Team foundation server could not connect to database 是否有TFS检入策略来防止跨团队项目检入? - Is there a TFS check-in policy to prevent check-ins across team projects? 在TFS 2010上运行单元测试项目.Team Build 2010不编译测试DLL - Running Unit Test Projects on TFS 2010. Team Build 2010 Is Not Compiling Test DLLs 使用多个TFS项目时,是否需要父团队项目来对其进行规则? - When working with multiple TFS projects, do I need a parent Team Project to rule over them? TFS无法连接到数据库。 登录字段 - TFS could not connect to database. Login field 如何从过期的TFS服务器检索项目 - How to retrieve projects from expired TFS server 如何在tfs 2010中构建多个依赖项项目 - How to build multiple dependency projects in tfs 2010
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM