是否有任何具体原因导致我们无法在windows azure中使用SSIS?
我意识到这个类似的问题已被问过几次,我在这些问题中尝试过这些建议而没有成功.
我正在使用实体框架(4.3)并针对SQL Azure运行(在联合数据库上).我希望能够记录实体框架生成的SQL.
我已经使用了实体分析器框架,虽然这在开发过程中很有用,但我不确定它在生产过程中是否有用.
我无法使用SQL事件探查器,因为这是一个SQL Azure数据库.
我已尝试使用EFTracingProvider并按照此处的步骤操作.不幸的是,当我尝试执行我的第一个命令(使用适当的联合)时,我得到一个异常,表明"不支持指定的方法".
生成错误的代码如下:
public MyContext(int tenantId)
: base(CreateTracingConnection("TheDb"), true)
{
const string FederationCmdText =
"USE FEDERATION TenantFederation(CustomerId = {0}) WITH RESET, FILTERING=ON";
((IObjectContextAdapter)this).ObjectContext.EnableTracing();
((IObjectContextAdapter)this).ObjectContext.Connection.Open();
// This is the line which throws the exception
this.Database.ExecuteSqlCommand(string.Format(FederationCmdText, tenantId));
}
Run Code Online (Sandbox Code Playgroud)
这是例外:
Specified method is not supported.
at EFProviderWrapperToolkit.DbConnectionWrapper.CreateDbCommand()
at System.Data.Common.DbConnection.CreateCommand()
...
Run Code Online (Sandbox Code Playgroud)
所以这是我的问题:
谢谢你的帮助,埃里克
如何在SQL Azure中设置外键?
我现在在Azure系统上有一个数据库.
数据库中的表有一个预期的用途,即有一个主要的,逻辑上集中的表,然后有许多表,每个表描述主表中的一些列.例如,如果我在主表中有一个年龄分类列,我可能会有一个单独的表,其中列出了年龄分类的一些类别(作为字符串)和一些相关的索引.然后,年龄分类表中的索引将用作主表中的参考.
这是外键吗?SQL Azure中是否有某种方法可以在这些索引之间建立关联?
在迁移到Azure之前,我曾经直接从服务器资源管理器(Add New Table/ Open Table Definition)在Visual Studio 2010中为我的数据库创建和修改数据表.
不幸的是,似乎不再可能为SQL Azure数据库执行此操作,"功能不受支持".有没有人知道用于创建和修改数据表模式的基于GUI的工具?我显然可以编写这些更改的脚本,但使用GUI会更快.
Visual Studio 2012是否支持此功能?
我得到的错误是:
加载问题:设计器在加载表定义时遇到错误
我可以很好地查看VS里面的表格中的数据,甚至可以查询数据.这是我计算机上的全新安装.
我尝试过的:
这是我的错误的图像.我从管理门户生成了一个非常简单的用户表,仅用于测试目的.

这是一个简单的测试,无需使用项目模板即可连接到Azure数据库.这是我第一次使用SQL Azure来警告你.当然,我可以坚持使用管理门户来改变表格定义和类似的东西,但我想要将所有内容保存在一个程序中.
我使用EF 6.我现有的代码是:
public void CreateOrUpdateCompanyDb(string companyDbName)
{
try
{
string connectionString = _connectionStringProvider.GetConnectionString(companyDbName);
DbMigrationsConfiguration cfg = CreateMigrationsConfig(connectionString);
cfg.AutomaticMigrationsEnabled = false;
cfg.AutomaticMigrationDataLossAllowed = false;
DbMigrator dbMigrator = new DbMigrator(cfg);
dbMigrator.Update();
}
catch (MigrationsException exception)
{
_logger.Error(string.Format("Error creating company database '{0}'",companyDbName), exception);
}
}
Run Code Online (Sandbox Code Playgroud)
连接字符串如下:
Server=tcp:xxx.database.windows.net,1433;Database=companyDbName;User ID=xxx@xxx;Password=xxx;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;"
Run Code Online (Sandbox Code Playgroud)
这为特定公司创建了数据库.但问题是创建的数据库来自现已退役的网络版,但我想创建基本/标准/高级版.
我应该如何操作连接字符串,以便数据库的版本是所需的?
entity-framework ef-code-first ef-migrations entity-framework-6 azure-sql-database
我需要在global.asax应用程序启动事件的Windows Azure上的Windows上创建一个sql数据库,但是出现此错误:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. This failure occurred while attempting to connect to the routing destination. The duration spent while attempting to connect to the original server was - [Pre-Login] initialization=296; handshake=324; [Login] initialization=0; authentication=1; [Post-Login] complete=94;
Run Code Online (Sandbox Code Playgroud)
我的代码如下:
private void SetupSSM() {
SqlConnectionStringBuilder connStrBldr = new SqlConnectionStringBuilder
{
UserID = SettingsHelper.AzureUsernamedb,
Password = SettingsHelper.AzurePasswordDb,
ApplicationName = SettingsHelper.AzureApplicationName,
DataSource = SettingsHelper.AzureSqlServer
};
bool created=DbUtils.CreateDatabaseIfNotExists(connStrBldr.ConnectionString, SettingsHelper.Azureshardmapmgrdb);
if(created) …Run Code Online (Sandbox Code Playgroud) sql-server asp.net-mvc azure azure-elastic-scale azure-sql-database
我在编写本文时已将SQL Server Management Studio更新到最新版本 - 12.0.4432.0 - 这是带有CU3的SP1和其他错误修复.我的Azur SQL数据库版本是12.0.2000.8
我无法通过GUI查看任何存储过程,当我尝试时出现此错误(所有其他功能似乎正常工作):
标题:Microsoft SQL Server Management Studio
无法检索此请求的数据.(Microsoft.SqlServer.Management.Sdk.Sfc)
如需帮助,请单击:http:
//go.microsoft.com/fwlink?ProdName = Microsoft%20SQL%20Server&LinkId = 20476附加信息:
未知属性IsNativelyCompiled(Microsoft.SqlServer.Management.Sdk.Sfc)
帮助>关于
Microsoft SQL Server Management Studio 12.0.4432.0
Microsoft Analysis Services Client Tools 12.0.4432.0
Microsoft Data Access Components (MDAC) 6.1.7601.17514
Microsoft MSXML 3.0 5.0 6.0
Microsoft Internet Explorer 9.11.9600.17801
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.1.7601
Run Code Online (Sandbox Code Playgroud) sql-server azure sql-server-2014 ssms-2014 azure-sql-database
Azure文档缺乏,文章经常过时.
我已经读过Azure服务的" 瞬态故障处理 "(TFH)(ServiceBus,FileStorage ...)现在已经完全管理.现在似乎没有什么可以在客户端实现.过去,我们可以使用企业库来管理这些目的,但它已经退役.为了访问SQL数据库,为Entity Framework实现了一个策略(https://msdn.microsoft.com/en-us/data/dn456835.aspx).
这是我的问题:
我们需要确保我们的组件(使用WebClient,原始ADO.NET ......)能够以可维护的方式正确运行.
在sql azure中的数据,我们有一个现有的webapi用odata公开数据.问题是客户端希望使用带有子串查询的过滤器调用几列,这使得性能非常慢.我们现在正在辩论是否使用全文搜索索引或使用天蓝色搜索服务,请问?