azure-elastic-scale

Enable-Migrations “Object reference not set to an instance of an object”

百般思念 提交于 2019-12-05 05:13:38
I just created a new service fabric service that will periodically attempt to save some models to SQL Azure using Entity Framework and the Elastic Client Database library. I'm trying to model it as closely as I can to the SQL Azure Elastic Scale Client Library EF sample ( Elastic DB Tools EF Sample ). I'm at the point where I need to enable migrations, but when I run Enable-Migrations I'm getting the following error message. I'm using the ContextTypeName parameter since it sounded like it would be required if I'm going to eventually have different service fabric services targeting the same

Timeout expired. The timeout period elapsed prior to completion of the operation on Azure sql

China☆狼群 提交于 2019-12-04 10:17:36
I need to create one sql database on windows azure on the global.asax application start event, however I got this error: 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; My code is as follows: private void SetupSSM() { SqlConnectionStringBuilder connStrBldr = new

Azure SQL Server Elastic Pool - automatically add database to pool

℡╲_俬逩灬. 提交于 2019-12-01 05:13:55
Currently we have an Azure SQL Server and each time we create new web app, we use EF Core Code First to generate the database. However after the database is created we manually go to Azure portal and add the newly created database to the Elastic Pool inside the Azure SQL Server. Is it possible to somehow automate the process so that each newly created database either via portal or generated using EF or whatever, it will be automatically added to the Pool? You can use Transact-SQL to programmatically move an existing Azure SQL Database into an elastic pool. ALTER DATABASE db1 MODIFY ( SERVICE

Autoscaling Azure SQL Database

守給你的承諾、 提交于 2019-11-29 22:53:39
We have an application that uses Azure SQL for the database backend. Under normal load/conditions this database can successfully run on a Premium 1 plan. However, during the early morning hours we have jobs that run that increase database load. During these few hours we need to move to a Premium 3 plan. The cost of a Premium 3 is about 8 times more, so obviously we do not want to pay the costs of running on this plan 24/7. Is it possible to autoscale the database up and down? Cloud services offer an easy way to scale the number of instances in the Azure Portal, however, nothing like this

Can't query between databases in SQL Azure

与世无争的帅哥 提交于 2019-11-27 22:38:50
I have a SQL Azure Database Server and I need to query between the Databases but can't figure out how to accomplish this. Here is the structure of my databases: Server.X Database.A Database.B Database.C In Database.A I have a Stored Procedure that needs to retrieve data from Database.B . Normally, I would reference the database like SELECT * FROM [Database.B].[dbo].[MyTable] but this does not appear to be allowed in SQL Azure. Msg 40515, Level 15, State 1, Line 16 Reference to database and/or server name in 'Database.B.dbo.MyTable' is not supported in this version of SQL Server. Is there a way