azure-sql-database

How to write the T-SQL STRING_AGG function

牧云@^-^@ 提交于 2019-12-11 08:13:21
问题 I need to write a STRING_AGG for my SQL Server 2014 master database. It is a built in function for SQL Server 2017 and Azure SQL. I have an application that executes stored procedures in an Azure SQL database, some of which use STRING_AGG . In our local development instance, we use a database on our localhost running on an older version of SQL Server. The issue is, because SQL Server 2014 doesn't have access to STRING_AGG , the stored procedures we wrote for our Azure SQL database won't work

Data Import - Excel to SQL Azure? [closed]

落爺英雄遲暮 提交于 2019-12-11 08:12:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Are there any available tools that make importing data from an Excel sheet (or even Access) to SQL Azure easy? I could write a C# script (and I'm assuming that the best available right now) but I thought I'd check in case there were other tools out there. I have as simple Excel sheet to import but its tens-of

Adding Azure AD account as SQL login with PowerShell failing

会有一股神秘感。 提交于 2019-12-11 08:04:18
问题 We are trying to automate the addition of an Azure AD group as a SQL login to a specific database running on an Azure SQL instance. When logging into the SQL instance with SSMS and running the command CREATE USER [<aad_group_to_add>] FROM EXTERNAL PROVIDER it executes with no issues and adds the account with no issues. Script we are using: Function Get-AADToken { [CmdletBinding()] [OutputType([string])] PARAM ( [String]$TenantID, [string]$ServicePrincipalId, [securestring]$ServicePrincipalPwd

EF6, Slow Azure Sql Writes, TransactionHandler

故事扮演 提交于 2019-12-11 07:39:45
问题 I am posting this in case anyone else runs into the same problem. We implemented the EF6 TransactionHandler which is suppose to help transient errors on Sql Azure. https://msdn.microsoft.com/en-us/library/dn630221(v=vs.113).aspx We didn't realize the table does not get cleaned. Eventually the __transactionHistory table had thousands of records. Every time we wrote to SQL, because of this mechanism, it caused horrible 5-10 second delays. The fix, we removed it. The implementation from MS

Can not connect to Azure SQL Server using Active directory integrated authentication in AppService

谁都会走 提交于 2019-12-11 07:34:56
问题 We have web application deploy on Azure App Service. Our database is also on Azure which is configured to use AAD authentication (We have assigned AAD Admin). We are using below connection string in web app to connect to this server and database using below connections string. Data Source=xxxxxxx.database.windows.net;Initial Catalog=xxxxxxx;Persist Security Info=False;Authentication=Active Directory Integrated Please note: This connection string is working fine when using thru local system.

Two way syncing between on-premise SQL Server database and Azure SQL database

落爺英雄遲暮 提交于 2019-12-11 07:33:35
问题 I need to perform two syncing of data from on-premise to Azure SQL database and vice versa. I have a database on premises which is used by many applications or systems. I've moved the database to Azure SQL by using transaction replication but I can't make all the systems to use Azure SQL database. Now, few systems would be consuming the on premise SQL Server database and performing CRUD operations on top of it and few systems would be using Azure SQL DB and performing CRUD operation on top of

SQL Azure - Could not able to alter column type

空扰寡人 提交于 2019-12-11 06:49:24
问题 Today I created a new table in SQL Azure portal and by default there is an Id INT column. Id ( int , PK , Not Null) When I tried to change it to BIGINT it gave me the following error: An error was encountered while applying the changes.An exception occurred while executing the Transact-SQL statement: ALTER TABLE [dbo].[PerformanceData] ALTER COLUMN [Id] BIGINT NOT NULL. The object 'PrimaryKey_029c7a8d-e6b2-43b8-94f1-98fc5b0115e3' is dependent on column 'Id'. ALTER TABLE ALTER COLUMN Id failed

Automated Azure SQL DB export fails - indexing for document type .xml is not supported on MS Azure SQL DB v12

走远了吗. 提交于 2019-12-11 06:42:46
问题 I'm using Azure SQL DB automated export feature. Everything worked like a charm, but recently it started failing: Automated SQL Export failed for XXX:XXX at 8/2/2015 4:11:22 AM. The temporary database copy was made, but this copy could not be exported to the .bacpac file. I've checked "Import/Export History" of my Azure SQL Server and saw following error details: Error encountered during the service operation. Indexing for document type .xml is not supported on Microsoft Azure SQL Database

VSTS: Deploy Azure SQL DACPAC Release Management throwing an error

徘徊边缘 提交于 2019-12-11 06:04:56
问题 I am trying to setup VSTS release management for my Azure SQL database. I am using the "Deploy Azure SQL DACPAC" task. Path to the dacpac file is setup as $(System.DefaultWorkingDirectory)\**\*.dacpac While the database updates correctly I get an error in the end that causes the task to fail. "System.Management.Automation.ParentContainsErrorRecordException: *** Could not deploy package" It looks like all the updates are applied to the database but the task still throws an error. Log below

Testing Azure SQL DW Concurrency shows internally Azure is not running procedures concurrently

主宰稳场 提交于 2019-12-11 05:48:56
问题 I have read the Azure Concurrency and workload management in SQL Data Warehouse https://azure.microsoft.com/en-us/documentation/articles/sql-data-warehouse-develop-concurrency/ and understand the limits placed on the number of concurrent queries one can use based on scale, but what I cannot understand and thus raising the question here is when testing what the document states, I cannot get the results Azure claims are true. Running queries concurrently is still taking almost as long as