如何在不使用实时 SQL Azure 实例的情况下进行 Azure 开发?
我有一个 BizSpark 帐户,并且从 Microsoft 获得了一些 Azure 免费赠品。但是,我被迫创建一个实时 SQL Azure 数据库以在本地开发中使用。这让我的速度有点慢,因为我在开发时必须通过网络读取/写入,并且必须始终保持连接。
有没有一种方法或技术可以在本地构建并让我的部署访问我的计算机上的 SQL Server Express 版本?我正在使用 EF4 访问数据库。
I have a BizSpark account and I get some Azure freebies from Microsoft. But, I'm forced to create a live SQL Azure database to use in my local development. This slows me down a bit because I have to read/write over the wire when I'm developing, and I must remain connected at all times.
Is there a way, or a technique, to build locally and have my deployments access the express edition of SQL Server on my machine? I'm using EF4 to access the database.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,作为 Bizspark 的一部分,您可以免费获得 3 个 SQL Azure 数据库。 http://msdn.microsoft.com/en-us/subscriptions/ee461076.aspx
这将允许您有 1 个数据库用于测试,1 个用于开发,1 个用于生产。
如果这不适合您,您可以在本地 SQL Express 上进行开发,并在将应用程序部署到 SQL Azure 时继续将更改部署到 SQL Azure。天蓝色。有两个工具可以帮助您:
1)开源SQL Azure迁移向导:http://sqlazuremw.codeplex.com/——我们个人不要将其用于部署,所以我不太了解对此发表评论。它是支持 SQL Azure 数据库的一个不错的工具。
2) 您可以使用Red Gate的SQL Compare产品,从v9.0+开始,他们支持同步跨 SQL Azure 和本地 SQL 服务器。我们将其用于 AzureWatch,并且非常高兴。它是商业产品,价格有些昂贵。
华泰
First of all, as a part of Bizspark, you get 3 SQL Azure databases for free. http://msdn.microsoft.com/en-us/subscriptions/ee461076.aspx
This will allow you to have 1 DB for testing, 1 for dev, and 1 for production
If this does not work out for you, you CAN develop on your local SQL Express and keep deploying your changes to SQL Azure as you deploy your application to Azure. There are two tools that help you here:
1) open-source SQL Azure Migration Wizard: http://sqlazuremw.codeplex.com/ -- we personally do not use this for deployments, so I am not super knowledgeable to comment on this. It is a decent tool to back your SQL Azure database.
2) You can use Red Gate's SQL Compare product, as of v9.0+, they support synchronizing cross SQL Azure and on-prem SQL servers. We use this for AzureWatch and are very happy. It is commercial product and is somewhat pricey.
HTH
对 Igorek 的回答+1 - 有很多好的建议。
除了他的建议之外,如果您是 BizSpark 许可证持有者,那么我建议您将完整的 SQL Server 2008 R2 部署到本地机器并针对其进行开发。
完整的 SQL Server 和 SQL Azure 之间存在差异 - 您应该阅读周围的内容以了解这些差异 - http://social.technet.microsoft.com/wiki/contents/articles/comparing-sql-server-with-sql-azure.aspx
作为只要您了解差异(尤其是 SQL Azure 限制),那么稍后迁移回 SQL Azure 应该是合理的。
+1 to Igorek's answer - plenty of good suggestions there.
In addition to his advice, if you are a BizSpark licensee then I suggest you deploy full SQL Server 2008 R2 to a local box and develop against that.
There are differences between full SQL Server and SQL Azure - you should read around to be aware of these - http://social.technet.microsoft.com/wiki/contents/articles/comparing-sql-server-with-sql-azure.aspx
As long as you are aware of the differences (especially the SQL Azure limitations) then migrating back to SQL Azure later, should be reasonable.