Visual Studio的数据库项目和SQL Azure的 [英] Visual Studio Database Project and SQL Azure

查看:148
本文介绍了Visual Studio的数据库项目和SQL Azure的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的有用于管理是基于Visual Studio 2010的数据库项目SQL Azure数据库的最佳方法挣扎。我想这将是很容易使用VSDBCMD创造升级的diff脚本,然后简单地运行针对SQL Azure在SSMS。不过,我得到了可怕的目标数据库架构提供商无法确定。部署无法继续。错误。

I'm really struggling with the best approach for managing a SQL Azure database which is based on a Visual Studio 2010 Database Project. I figured it would be easy enough to use VSDBCMD to create diff scripts for upgrades and then simply run against SQL Azure in SSMS. However, I get the dreaded "The target database schema provider could not be determined. Deployment cannot continue." error.

在这一点上,我只是假设是SQL Azure不支持VSDBCMD的东西,反之亦然,我寻找其他的方法。下面是我目前考虑的方式:

At this point I'm just assuming either SQL Azure doesn't support something in VSDBCMD or vice versa and I'm looking at other approaches. Here's the approach I'm currently considering:


  1. 脚本SSMS使用Azure的数据库引擎的设置我的SQL Azure数据库。

  2. 在步骤1中创建一个从脚本tempory本地数据库。

  3. 使用VSDBCMD从第2步创建我对本地数据库三角洲脚本。

  4. 查看/修改步骤3中的脚本。

  5. 从步骤3/4针对SQL Azure在SSMS运行脚本。

好,是坏?任何其他的想法?

Good, bad? Any other ideas?

修改:我今天2010 SP1升级到Visual Studio中,发现有在Microsoft.Data.Schema.Sql.dll一个新的数据库架构提供商:SqlAzureDatabaseSchemaProvider。不过,我不能确定如何实际使用这个坏小子。现在,当我尝试针对Azure数据库相同VSDBCMD剧本,我得到:

EDIT: I updated to Visual Studio 2010 SP1 today and found that there is a new database schema provider in Microsoft.Data.Schema.Sql.dll: SqlAzureDatabaseSchemaProvider. However, I cannot determine how to actually use this bad boy. Now when I try the same VSDBCMD script against an Azure database, I get:

源数据库架构提供Sql100DatabaseSchemaProvider不能转换为供应商SqlAzureDatabaseSchemaProvider。部署无法继续。

The source database schema provider Sql100DatabaseSchemaProvider could not be translated to provider SqlAzureDatabaseSchemaProvider. Deployment cannot continue.

我也用相同结局Sql90提供商尝试。我甚至手动编辑dbproj文件,并改变了DSP属性SqlAzureDatabaseSchemaProvider。当我重新加载项目我得到:

I also tried using the Sql90 provider with the same outcome. I even manually edited the dbproj file and changed the DSP property to SqlAzureDatabaseSchemaProvider. When I reload the project I get:

数据库架构提供商必须提供DataGenerationServices的实现。

The database schema provider must provide an implementation of DataGenerationServices.

有没有人试图与VS 2010 SP1?

Has anyone tried this with VS 2010 SP1?

推荐答案

您可以使用 SQL Azure迁移向导并使用它。也许你能得到的脚本和根据需要对其进行编辑。只是一个想法。

You can use the SQL Azure Migration Wizard and play with it. Maybe you can get the scripts and edit them as you want. Just an idea.

这篇关于Visual Studio的数据库项目和SQL Azure的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆