azure-sql-database

Loading file from Azure Blob Storage into Azure SQL Database using BULK INSERT

橙三吉。 提交于 2019-12-08 20:42:48
Following this announcement https://azure.microsoft.com/en-gb/updates/preview-loading-files-from-azure-blob-storage-into-sql-database/ I tried the example as such provided in this GitHub sample and receiving the following error, -- Create credential with Azure Blob SAS CREATE DATABASE SCOPED CREDENTIAL xxxstorcred WITH IDENTITY = 'SHARED ACCESS SIGNATURE', SECRET = '?sv=2015-12-11&ss=bfqt&srt=sco&sp=rwdl&st=2017-03-14T17%3A52%3A00Z&se=2017-05-31T16%3A52%3A00Z&sig=f45435435TzrsdsdsdC8wonjDMBG0T0GJj717XetLEWReZ64eOrQE%3D'; -- Create external data source with with the roow URL of the Blob storage

Use Azure Powershell to execute a .sql file

瘦欲@ 提交于 2019-12-08 16:45:48
问题 I've seen examples of running a SQL command from Azure Powershell e.g. $connectionString = "Data Source=MyDataSource;Initial Catalog=MyDB;User ID=user1;Password=pass1;Connection Timeout=90" $connection = New-Object -TypeName System.Data.SqlClient.SqlConnection($connectionString) $query = "CREATE TABLE...." $command = New-Object -TypeName System.Data.SqlClient.SqlCommand($query, $connection) $connection.Open() $command.ExecuteNonQuery() $connection.Close() Is there a way to replace the $query

Intermittent error with EF Core: The connection does not support MultipleActiveResultSets

家住魔仙堡 提交于 2019-12-08 14:45:13
问题 I have an ASP.Net Core application that uses EF Core. I use ASP.Net Identity and share the same DBContext for my app's entities. I have set my connection string to an Azure SQL database to have MultipleActiveResultSet=True. It works for a day or two, but eventually it fails with the error: The connection does not support MultipleActiveResultSets. I don't think MARS is the real issue since it worked for the first two days it was up. I am using ASP.Net Core's built-in DI to set my DbContext.

Changing Azure Resource Group location

穿精又带淫゛_ 提交于 2019-12-08 14:37:53
问题 I have a setup in azure with a bunch of resources combined in a resource group. I want my services to be located in west-europe, so all my resources are there (where possible) I just noticed that when creating the resource group, i accidentally used West US. So the current setup is: Resource Group 1 (West US) App Service 1 (West Europe) App Service 2 (West Europe) SQL Server (West Europe) Storage account (West Europe) ... (West Europe) Can I change the location of the resource group without

Migrating to Azure SQL (BCP)

烂漫一生 提交于 2019-12-08 13:33:01
问题 I am attempting to migrate a database from my local SQL server (SQL 2008 R2) to an Azure SQL installation. Using a migration tool I found on the web, it has highlighted some issues where features are unavailable in Azure, the main one being BULK INSERT. I have since replaced this feature with a call to xp_cmdshell to use BCP. I am now getting an error that xp_cmdshell is unavailable in azure! DECLARE @BCPString VARCHAR(255) = 'BCP ' + @DatabaseName + '.dbo.TEMP IN ' + @Path + ' -c -t "," -r

Push data to Azure SQL database

微笑、不失礼 提交于 2019-12-08 11:54:30
问题 I am pretty new using Azure SQL database. I have been given a task to push a 100 million record text file to Azure SQL database. I'm looking for suggestions how to do it in an efficient manner. 回答1: You have several options to upload on-premise data to your SQL Azure database SSIS - As Randy mentioned you can create an SSIS package (using SSMS) and schedule an SQL Agent job to run this package periodically. Azure Data Factory - You can define an ADF pipeline that periodically uploads data

Is it Possible to call Functions and Stored Procedures of One database In another database- Azure Sql server

六月ゝ 毕业季﹏ 提交于 2019-12-08 10:44:09
问题 I need to call function from another database to a database within the Azure sql. That is , there is a function in DB1. I need that same function in DB2. How to call it from DB2? Both database are in azure Sql server 回答1: Maybe you can see this documentation:Reporting across scaled-out cloud databases (preview). Elastic query also introduces a stored procedure that provides direct access to the shards. The stored procedure is called sp_execute _remote and can be used to execute remote stored

Azure function connectionstring for Azure SQL trough VNet

回眸只為那壹抹淺笑 提交于 2019-12-08 08:15:56
问题 I would like to know how to access my Azure SQL database in a secure way from my Azure Function App, meaning not via public Internet. I have an Function App (Function App Plan - standard tier), using VNET/Gateway integration. I have specified a service EndPoint for Microsoft.SQL ... I enabled the Virtual network access on Azure SQL database .... When the Azure function tries to connect to the sql db, it uses the 'normal' connectionstring, which includes the sql database server name as dns

Do Azure Easy Tables support relationships?

谁说胖子不能爱 提交于 2019-12-08 06:29:52
问题 I'm just learning about Azure Mobile Apps . Do Easy Tables support relationships? My existing schema has multiple tables with foreign key constraints, and I need the ability to create complex joins ( Easy APIs ). I'm trying to understand the point of all this "Easy" stuff. Should I skip it and just create a custom ApiController and manual db script deployment? 回答1: Easy Tables are just simple SQL Azure tables that are exposed through a Web API OData Service endpoint. So when you create them

What alternatives exist to using guid as clustered index on tables in SQL Azure (Federations)

余生长醉 提交于 2019-12-08 06:17:04
问题 I am currently working on a project that entails using a SQL Azure database to store data for a forthcoming application. One of the goals of the project is to be able to take advantage of Federations (sharding) in SQL Azure. Another stated goal of the project is to be able to run this application on local hardware should a client opt for this scenario. One of the "obstacles" I am confronted with is the lack of support for IDENTITY in Federations. http://blogs.msdn.com/b/cbiyikoglu/archive