azure-sql-database

Blob is not writeable

懵懂的女人 提交于 2019-12-11 01:42:15
问题 When I am trying to take azure db backup using azure rm command (New-AzureRmSqlDatabaseExport), I am facing the below issue Error encountered during the service operation. Blob https://XXXXXXXXXX.blob.core.windows.net/XXXXX-container/ABC.bacpacklj1234klj12l3k4jl2k34jl2k3j4lk23j4l12k34jlk23j4lk23lk4j234A8i3t1GAs4Tvx2wjQRf7nTi/fM0+v7o7SWuUTU6WpRwO2SM0w== is not writeable. The remote server returned an error: (404) Not Found. The remote server returned an error: (404) Not Found. But by using the

How do I reference a table twice when creating an indexed view? Can I enforce uniqueness based on 2 tables and multiple rows without it?

∥☆過路亽.° 提交于 2019-12-11 01:23:45
问题 EDIT: Added in sample data that I am trying to disallow. This question is similiar to this: Cannot create a CLUSTERED INDEX on a View because I'm referencing the same table twice, any workaround? but the answer there doesn't help me. I'm trying to enforce uniqueness, and so an answer of "don't do that" without an alternative doesn't help me progress. Problem Example (Simplified): CREATE TABLE [dbo].[Object] ( Id INT NOT NULL IDENTITY(1,1) PRIMARY KEY, OrgId UNIQUEIDENTIFIER ) CREATE TABLE

Restore Azure SQL Database LTR back-up via the Portal after deleting the original Azure SQL Server

一世执手 提交于 2019-12-11 01:04:35
问题 I can't find a straight answer to this question so hoping someone here came across this. As the LTR backups are tied to the subscription there should be a way to restore a backup even if the original SQL Server that hosted the database is deleted. How can these be viewed and restored via the Portal after the SQL Server is deleted? Or via other means. 回答1: Currently there isn't a built-in method to restore the entire server. When a server is deleted (soft deleted) then you should call Azure

How to check Azure Pricing tier change history for SQL Server Database?

守給你的承諾、 提交于 2019-12-11 00:58:13
问题 I created an AZURE SQL Database with S0 pricing tier, two months back. But somehow the pricing tier of the same database suddenly got upgraded to P15 for 10 days and then again downgraded to S0. I want to check when and how this happened! Is there any way I can check pricing tier change history from Azure portal or using any Sql query? Activity logs of Azure portal do not show any such pricing tier changes. 回答1: Yes, in the portal you can scale the database: There is no automatic auto-scaling

SQL Azure failover / backup strategy for web app

夙愿已清 提交于 2019-12-11 00:39:35
问题 I'm building a web app using Azure & SQL Azure. I'm setting it up so each organization has their own database. Low to moderate traffic per customer organization. I'm thinking about using SQL Azure Data Sync as part of a failover/backup plan, so that if SQL Azure goes down, my app can switch over to my on-premises SQL Server (read-only mode). I would also be able to do all of my backups on-prem, instead of in the cloud which could incur costs. One issue may be trying to data-sync multiple

Log when entity framework 6 SqlAzureExecutionStrategy retries

不羁的心 提交于 2019-12-10 22:17:57
问题 How can I log when the SqlAzureExecutionStrategy retries an Entity Framework operation? When using the transient fault handling logic with regular SqlConnection calls, a Retrying event is exposed. Is there something similar when using the SqlAzureExecutionStrategy with Entity Framework 6? If not, what are some other options? 回答1: There is a very good article on this topic explaining all the steps for logging Azure SQL database with ASP.NET MVC and EntityFramework:. Hope this helps. Here is

How do I connect to SQL Azure from NodeJS/Tedious?

◇◆丶佛笑我妖孽 提交于 2019-12-10 22:09:06
问题 I have a SQL Azure database that I'm trying to connect to from a NodeJS application running in an Azure Linux VM. Everything works fine when I'm on a local SQL Database/and local machine for NodeJS. However, when I run from my vm, I get the following output (My trace output plus the Tedious debug event): connected to XXXXXXX.database.windows.net:1433 State change: Connecting -> SentPrelogin State change: SentPrelogin -> SentLogin7WithStandardLogin connection to XXXXXXX.database.windows.net

“Data connections” in azure

蓝咒 提交于 2019-12-10 19:41:58
问题 I have a question about "Data connections" in azure. I have an App Service. I published my API app there. In my app I have connection strings (I need to work with databases). Among numerous settings for my app I saw a "Data connections" item: There you can add new connection (server, login, password). After creation you can look at connection string for this connection: My questions are: 1. what does it do? (I mean in my app I already have a connection string in Web.config and is there any

Why Is My Azure SQL Database Table Permanently Locked?

倾然丶 夕夏残阳落幕 提交于 2019-12-10 18:30:55
问题 I have an isolated Azure SQL test database that has no active connections except my development machine through SSMS and a development web application instance. I am the only one using this database. I am running some tests on a table of ~1M records where we need to do a large UPDATE to data in nearly all of the ~1M records. DECLARE @BatchSize INT = 1000 WHILE @BatchSize > 0 BEGIN UPDATE TOP (@BatchSize) [MyTable] SET [Data] = [Data] + ' a change' WHERE [Data] IS NOT NULL SET @BatchSize = @

Azure PostgreSQL Server Service Collation Create Error

妖精的绣舞 提交于 2019-12-10 18:29:22
问题 I'm trying to import my current existing database to postgre instance that is running on Azure PostgreSQL Server I already configured my azure postgresql server parameters to use encoding as UTF8 (I'm not sure that it's applying without restart but even if i don't have option to restart it) I'm trying to do this action with this command: sudo -u postgres pg_dump --encoding="UTF-8" --no-owner DBNAME | psql --host=xxx.postgres.database.azure.com --port=5432 --username=xxx@yyy --dbname=DBNAME