azure-sql-database

Is SQL Azure suitable for Desktop client applications

耗尽温柔 提交于 2019-12-03 05:49:56
I have a client that runs a small business. They need a custom database solution and I'm looking into various options. My experience is limited to .NET using local SQL Servers (no ASP.NET), however, this client is non-technical and would benefit from being able to outsource the DBA tasks. I'm a complete Azure noob, I just scanned the tutorials and they all appear targeted at developing MVC ASP solutions. The client doesn't need a browser based solution. A fat desktop client used from different geographical offices would be the least expensive option I can deliver. I'm just trying to save some

“select count(id) from table” takes up to 30 minutes to calculate in SQL Azure

我们两清 提交于 2019-12-03 05:49:52
I have a database in SQL Azure which is not taking between 15 and 30 minutes to do a simple: select count(id) from mytable The database is about 3.3GB and the count is returning approx 2,000,000 but I have tried it locally and it takes less than 5 seconds! I have also run a: ALTER INDEX ALL ON mytable REBUILD On all the tables in the database. Would appreciate if anybody could point me to some things to try to diagnose/fix this. (Please skip to UPDATE 3 below as I now think this is the issue but I still do not understand it). UPDATE 1: It appears to take 99% of the time in a clustered index

How can I change primary key on SQL Azure

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 05:49:32
I am going to change the primary key on SQL Azure. But it throws an error when using Microsoft SQL Server Management Studio to generate the scripts. Because every tables on SQL Azure must contains a primary key. And I can't drop it before create. What can I do if I must change it? Script generated IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[mytable]') AND name = N'PK_mytable') ALTER TABLE [dbo].[mytable] DROP CONSTRAINT [PK_mytable] GO ALTER TABLE [dbo].[mytable] ADD CONSTRAINT [PK_mytable] PRIMARY KEY CLUSTERED ( [id] ASC )WITH (STATISTICS_NORECOMPUTE = OFF,

Azure: How to move databases into Elastic Pool

那年仲夏 提交于 2019-12-03 05:43:12
We have a few databases in Pricing Tier: Basic , S0 ... like below picture: These databases were created before a new Elastic Pool is created. Now we want to move these databases into Elastic Pool for costing saving. But it seems I don't know how to move them on the Azure portal. Srini Acharya You can create an elastic pool in the same server as your databases, through portal using instructions here - https://azure.microsoft.com/en-us/documentation/articles/sql-database-elastic-pool-create-portal/ Once you have created a pool, you can add existing databases to the pool using instructions here

Error While Enabling Code-First Migrations On Mobile Services Database

末鹿安然 提交于 2019-12-03 05:37:43
I have an Azure Mobile Services project (C# backend) that I recently created and attached to an Azure SQL database. I have been trying to enable Code-First Migrations on that backing database, but it throws errors when I try to update the database. I ran through all of the conventional steps to enable migrations (Enable-Migrations, Add-Migration). But when I try to Update-Database, it returns the following error: Cannot create more than one clustered index on table 'dbo.Appointments'. Drop the existing clustered index 'PK_dbo.Appointments' before creating another. Why is this happening? There

How do I test locally against SQL Azure?

左心房为你撑大大i 提交于 2019-12-03 05:02:54
Looks like Azure Storage Emulator omits SQL Azure. Does it hold true? Then how do I test my application that uses SQL Azure without deploying it onto live cloud? For local testing, you can use a local SQL Server (full, express or even CE) within your app - just use local connectionstring's in place of the SQL Azure ones in your .cscfg or .config files - then the local compute instance will connect just like any other local process would. For the most part local SQL and SQL Azure are compatible and interchangeable. Microsoft claim that SQL Azure shares much of its codebase with SQL Server 2008

Full Text Search on SQL Azure [duplicate]

走远了吗. 提交于 2019-12-03 04:50:53
This question already has answers here : SQL Azure and Full-Text Catalogs, Indexes and Searching (4 answers) I have a database that I am migrating to SQL Azure. There are a couple of stored procedures in this database that rely on ContainsTable. From my understanding, SQL Azure does not support this. Because of this, I was hoping there would be a way to imitate this functionality in C# code. Does anyone know how to either: a) Utilize ContainsTable in SQL Azure or b) Imitate it in C# code? Yes, you are right that Contains Table are not supported on SQL Azure as described here . Based on your

Azure SQL Database vs. MS SQL Server on Dedicated Machine

*爱你&永不变心* 提交于 2019-12-03 04:50:04
问题 I'm currently running an instance of MS SQL Server 2014 (12.1.4100.1) on a dedicated machine I rent for $270/month with the following specs: Intel Xeon E5-1660 processor (six physical 3.3ghz cores + hyperthreading + turbo->3.9ghz) 64 GB registered DDR3 ECC memory 240GB Intel SSD 45000 GB of bandwidth transfer I've been toying around with Azure SQL Database for a bit now, and have been entertaining the idea of switching over to their platform. I fired up an Azure SQL Database using their P2

Tables without a clustered index are not supported in this version of SQL Server

↘锁芯ラ 提交于 2019-12-03 04:43:34
I am working on vs 2010 and EF 4.1 with SQL server database . Below mentioned code works fine with local SQL server DB.(SQL 2008). But when I published the MVC application for windows AZURE cloud and SQL Azure it's giving below mentioned error . Why this error is only return SQL Azure (working with desktop SQL server 2008)? How to get rid of this ? My repository code sample as below.Below mentioned error comes when calling Catalog.SaveChanges() method. using (var catalog = new DataCatalog()) { var retailSaleReturn = new RetailSaleReturn { ReturnQuantity = returnQuantity, Product =

Getting started with Azure storage: Blobs vs Tables vs SQL Azure

邮差的信 提交于 2019-12-03 04:23:11
It's quite a topic, blobs vs tables vs SQL , and despite all I read so far I still can't find some proper reasoning on what to use when. We have a multi-tenant SaaS web-application which we are about to move to Azure. We use an SQL Server 2008 database. We store documents and log information that belongs to the documents. Kinda like dropbox does. The forums state that you better use Azure Tables when you are considering "large" objects. We typically store hundreds of documents per user where the size of the documents vary from 5kb to 30mb where the vast majority will be around 1MB? Are there