azure-sql-database

Insert rows with Unicode characters using BCP

一个人想着一个人 提交于 2020-02-03 05:35:25
问题 I'm using BCP to bulk upload data from a CSV file to SQL Azure (because BULK INSERT is not supported). This command runs and uploads the rows: bcp [resource].dbo.TableName in C:\data.csv -t "," -r "0x0a" -c -U bcpuser@resource -S tcp:resource.database.windows.net But data.csv is UTF8 encoded and contains non-ASCII strings. These get corrupted. I've tried changing the -c option to -w: bcp [resource].dbo.TableName in C:\data.csv -t "," -r "0x0a" -w -U bcpuser@resource -S tcp:resource.database

SQL Azure database trigger notification hub

折月煮酒 提交于 2020-01-25 05:52:04
问题 I have a SQL Azure database with one table on Azure and I want to trigger my notification hub when there is a change in the number of rows on my table so that I can send a push notification to my universal app. I tried to trigger a WCF service so that I can then call my notification hub but with no luck. Also I don't think is the best way either anyway. Do you have any thoughts? 回答1: i think that you can try using Logic Apps in this case linked to your services, so whenever there is a new row

Azure server got error “system lacked sufficient buffer space or because a queue was full Ip”

孤人 提交于 2020-01-25 05:05:37
问题 i have hosted my project on azure server of Asp.net MVC, and i have used azure sql, its work fine, but number of times while performing any operation , i.e. when fire calls from controller it gives error like, "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full Ip" and after few minutes its starts to work fine, can anyone tell me why this error is throwing or is there any solution for this?? 回答1: This is most probably

Azure cross database queries,External resources, External tables

人盡茶涼 提交于 2020-01-24 23:25:13
问题 I am migrating all my VM Sql Server 2012 database to Azure Sql Database . In my current structure I am using cross database queries to fetch data from different database tables. I have created external table to my parent table using below query CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'yourPassword'; CREATE DATABASE SCOPED CREDENTIAL yourServeradminlogin WITH IDENTITY = 'yourServeradminlogin', SECRET = 'yourPassword'; CREATE EXTERNAL DATA SOURCE RefmyDemoDB2 WITH ( TYPE=RDBMS, LOCATION=

Azure SQL server Login failed for user 'NT AUTHORITY/ANONYMOUS LOGIN'

这一生的挚爱 提交于 2020-01-24 19:24:26
问题 I'm trying to log into an Azure SQL server from SSMS using my Azure active directory account. I've followed this guide: Configure and manage Azure Active Directory authentication with SQL I've added my account as an admin: And my account also shows up as the Active Directory admin in the properties of the SQL database: Then, I try to log in with SSMS, with Active Directory authentication: I login with my account and get the MFA notification, but after that I get the following error: Any tips

Azure SQL server Login failed for user 'NT AUTHORITY/ANONYMOUS LOGIN'

做~自己de王妃 提交于 2020-01-24 19:24:25
问题 I'm trying to log into an Azure SQL server from SSMS using my Azure active directory account. I've followed this guide: Configure and manage Azure Active Directory authentication with SQL I've added my account as an admin: And my account also shows up as the Active Directory admin in the properties of the SQL database: Then, I try to log in with SSMS, with Active Directory authentication: I login with my account and get the MFA notification, but after that I get the following error: Any tips

Trigger Azure Function by inserting (adding) new row into table, SQL Server Database

非 Y 不嫁゛ 提交于 2020-01-24 09:34:27
问题 Is it possible to trigger Azure Function by inserting new row into table (using SQL Server Database). Or, is it possible create Logic App to inform us, in case of new record has been added into table, SQL Server database (e.g once the new record is added to send new info email) 回答1: You can use Azure Event Grid as stated on this article "Extend existing workflows by triggering a Logic App once there is a new record in your database". You can also create a Logic App to poll the table and add

Trigger Azure Function by inserting (adding) new row into table, SQL Server Database

允我心安 提交于 2020-01-24 09:34:12
问题 Is it possible to trigger Azure Function by inserting new row into table (using SQL Server Database). Or, is it possible create Logic App to inform us, in case of new record has been added into table, SQL Server database (e.g once the new record is added to send new info email) 回答1: You can use Azure Event Grid as stated on this article "Extend existing workflows by triggering a Logic App once there is a new record in your database". You can also create a Logic App to poll the table and add

Trigger Azure Function by inserting (adding) new row into table, SQL Server Database

此生再无相见时 提交于 2020-01-24 09:34:06
问题 Is it possible to trigger Azure Function by inserting new row into table (using SQL Server Database). Or, is it possible create Logic App to inform us, in case of new record has been added into table, SQL Server database (e.g once the new record is added to send new info email) 回答1: You can use Azure Event Grid as stated on this article "Extend existing workflows by triggering a Logic App once there is a new record in your database". You can also create a Logic App to poll the table and add

Insert data using powershell

风格不统一 提交于 2020-01-24 01:12:29
问题 We have a static sql file which consists of insert statements;basically test data. is it possible to execute this script using powershell on azure sql db where alwaysencrypted is enabled. We use keyvault to store the certs. 回答1: Unfortunately, PowerShell (Invoke-SqlCmd) does not support insert statements against encrypted columns at this point. The only SQL tool from Microsoft that supports such statements at this point is SSMS - please see: https://docs.microsoft.com/en-us/sql/relational