azure-sql-database

Do I use Azure Table Storage or SQL Azure for our CQRS Read System?

你说的曾经没有我的故事 提交于 2019-12-05 01:33:38
We are about to implement the Read portion of our CQRS system in-house with the goal being to vastly improve our read performance. Currently our reads are conducted through a web service which runs a Linq-to-SQL query against normalised data, involving some degree of deserialization from an SQL Azure database. The simplified structure of our data is: User Conversation (Grouping of Messages to the same recipients) Message Recipients (Set of Users) I want to move this into a denormalized state, so that when a user requests to see a feed of messages it reads from EITHER: A denormalized

Entity Framework 4.1 code-first KeyAttribute as non-identity column

ぐ巨炮叔叔 提交于 2019-12-05 00:15:17
I've got a problem with a code-first model I've got. Data is now in the database so I can't re-seed the database using a DropCreateDatabaseIfModelChanges class, but I need to change one table so that a bigint column is not an IDENTITY(1,1). I've managed to do this using SSMS but now my EF code is saying it's out of date. This is the code for the table in question: public class Vote { [Required, Key, DatabaseGenerated(DatabaseGeneratedOption.None)] public long FacebookUserId { get; set; } [Required] public Entity Entity { get; set; } } So I've changed my table schema, and my model (which I

Code First Migrations in SQL Azure - Tables without a clustered index are not supported

我怕爱的太早我们不能终老 提交于 2019-12-05 00:10:13
问题 I can't seem to get my Code-First Migration to create my SQL Azure database. It keeps complaining about SQL Azure's lack of support for tables without clustered indexes and I cant find a way around to create my database. Note: I'm using CreateDatabaseIfNotExists to create the change tracking tables on the first time database creation because apparently DropCreateDatabaseIfModelChanges doesn't do that for you public partial class IUnityDbContext : DbContext { public IUnityDbContext() : base(

SetExecutionStrategy to SqlAzureExecutionStrategy with DbMigrationsConfiguration?

ⅰ亾dé卋堺 提交于 2019-12-04 23:07:23
I saw a post today about implementing SqlAzureExecutionStrategy: http://romiller.com/tag/sqlazureexecutionstrategy/ However, all examples I can find of this use a Configuration that inherits from DbConfiguration. My project is using EF6 Code First Migrations, and the Configuration it created inherits from DbMigrationsConfiguration. This class doesn't contain a definition for SetExecutionStrategy, and I can find no examples that actually combine SqlAzureExecutionStrategy (or any SetExecutionStrategy) with DbMigrationsConfiguration. Can this be done? If anyone else comes across this question,

how to schedule a stored procedure in AZURE

我是研究僧i 提交于 2019-12-04 22:52:45
问题 I have a stored procedure that I want it to run in every mid nigh but my data base is in aZure How can I schedule a task using sql agent? 回答1: Azure Automation: Your SQL Agent in the Cloud: https://azure.microsoft.com/en-us/blog/azure-automation-your-sql-agent-in-the-cloud/ make a small powershell script and schedule it in the azure dashboard. 回答2: You can use Azure Web Job and create a console App that just call your stored procedure and schedule it to run every mid night. Here's a sample of

Changing the default database for a SQL Azure login

橙三吉。 提交于 2019-12-04 22:14:45
I would like to change the default database for a login to support software that can access SQL Azure but does not allow easy alteration of a connection string. It appears that SQL Azure defaults to the master database. I've already considered: Stored procedures. I can't find a stored procedure that does this ( sp_defaultdb is not implemented in SQL Azure as far as I can tell) Alter Login. ALTER LOGIN does not permit the DEFAULT_DATABASE option. SSMS. SSMS doesn't seem to allow much user control through the interface for SQL Azure. Ideas? Connection String: Server=tcp:[serverName].database

Is it possible to use cross database queries in both Azure and SQL?

荒凉一梦 提交于 2019-12-04 21:45:44
I am working on a project designed to run on azure platform using Azure database and Locally using local sql server. We have stored procedure that contain cross database calls. However It doesn't works on Azure server.I need cross database queries that capable of working in both azure and local sql server. We an use Elastic Query which allows us to query across Azure SQL Databases https://azure.microsoft.com/en-us/documentation/articles/sql-database-elastic-query-overview/ We can setup external data source in azure server Using following code. In this case we can execute cross database calls

Multi-tenancy: Individual database per tenant

雨燕双飞 提交于 2019-12-04 20:55:31
问题 We are developing a multi-tenant application. With respect to architecture, we have designed shared middle tier for business logic and one database per tenant for data persistence. Saying that, business tier will establish set of connections (connection pool) with the database server per tenant. That means application maintain separate connection-pool for each tenant. If we expect around 5000 tenants, then this solution needs high resource utilization (connections between app server and

Sql 2008 Developer to Sql Azure Migration

a 夏天 提交于 2019-12-04 19:54:57
Hi My company is deciding for switching its existing application to azure platform (only Sql Part). So we need to upload our db from local to cloud. For migration i came across various tools like 1. cerebrata 's tools 2. SqlAzure Migration wizard 3. Microsoft Sql Data Sync 4. Conventional Script way via management studio. But all the above tools showed that they have limited capacity. A user cannot work flawlessly on either of the tool. In cerebrata's tool - the main drawback was its field for Application User Name and Application Key , which my admin havent shared. Also there is manual

SQL Azure and Indexes

时间秒杀一切 提交于 2019-12-04 19:05:53
问题 is that true that SQL Azure rebuilds / reorganizes index automatically? We have a database on Sql Azure and experiencing performance degradation and I suppose this is a urban-legend. Can you help me? Thanks, Marco 回答1: SQL Azure does not rebuild indexes automatically while the statistics are updated automatically. If you have a specific reason to force the rebuild it, you have to directly issue the command. This nice post helps you create a script to dynamically rebuild all indexes in a SQL