azure-sql-database

How to connect Blazor C# App to Azure SQL Database? MacOS

邮差的信 提交于 2020-06-28 06:36:27
问题 I am a beginner trying to get a Blazor C# App to connect to the SQL database I created on Azure. I am having trouble trying to figure out how to connect these two on MacOS Visual Studio. I have found a few forums describing how it is done in windows but I can't seem to figure it out on mac. Any help would be appreciated. 回答1: You can read this article, and follow the step to create a demo or download EndToEnd.sln to find out how to connect db on MAC OSX. I have try it and success. My macOS

Can we connect Microsoft Azure Bot to Azure SQL Database and read data from the DB and use it as a reply for the Bot?

落爺英雄遲暮 提交于 2020-06-28 05:43:49
问题 I am working on a ChatBot project, which requires to query from a table in SQL database hosted in Azure and use the result as a reply for the bot. I am using a basic bot template from Azure Web App Bot. Independently without connecting to the database, the Bot is working fine. And there is no issues with the database, I was able to query from the same DB using EF DB first approach in a MVC webapp. But in the project, if I use the same approach, I am getting an error: connect ECONNREFUSED And

Unable to Connect to Azure SQL DB from Azure App Service

老子叫甜甜 提交于 2020-06-16 17:05:31
问题 We have an ASP Classic web application running successfully in an Azure App Service that currently uses SQL Server Authentication to access the Azure SQL Database. We need to change the authentication to Active Directory user. We managed to make this application work from a developer’s workstation accessing the Azure SQL Database, see what worked and did not, below. * Does NOT work on desktop and Does NOT works in Azure Conportail.Open "Provider=SQLOLEDB; Server=tcp:.database.windows.net,1433

efficient way to transform XML document into tabular dataset in SQL because cross apply xml query performs exponentially worse as xml grows

断了今生、忘了曾经 提交于 2020-05-30 21:00:34
问题 I have a big size XML document (50.000-100,000) that needs to be parsed on Azure SQL that looks like this: <?xml version="1.0" encoding="UTF-8"?> <covid-19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://covid-19.iss.it/XMLSchema/0.1/"> <pazienti> <paziente> <codiceRegionalePaziente>0123456789</codiceRegionalePaziente> <codiceFiscale/> <nome>nomeBulk01</nome> <cognome>cognomeBulk01</cognome> <dataNascita>1989-12-31</dataNascita> <sesso>F</sesso> <nazionalita>380<

efficient way to transform XML document into tabular dataset in SQL because cross apply xml query performs exponentially worse as xml grows

こ雲淡風輕ζ 提交于 2020-05-30 20:57:58
问题 I have a big size XML document (50.000-100,000) that needs to be parsed on Azure SQL that looks like this: <?xml version="1.0" encoding="UTF-8"?> <covid-19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://covid-19.iss.it/XMLSchema/0.1/"> <pazienti> <paziente> <codiceRegionalePaziente>0123456789</codiceRegionalePaziente> <codiceFiscale/> <nome>nomeBulk01</nome> <cognome>cognomeBulk01</cognome> <dataNascita>1989-12-31</dataNascita> <sesso>F</sesso> <nazionalita>380<

efficient way to transform XML document into tabular dataset in SQL because cross apply xml query performs exponentially worse as xml grows

一世执手 提交于 2020-05-30 20:57:35
问题 I have a big size XML document (50.000-100,000) that needs to be parsed on Azure SQL that looks like this: <?xml version="1.0" encoding="UTF-8"?> <covid-19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://covid-19.iss.it/XMLSchema/0.1/"> <pazienti> <paziente> <codiceRegionalePaziente>0123456789</codiceRegionalePaziente> <codiceFiscale/> <nome>nomeBulk01</nome> <cognome>cognomeBulk01</cognome> <dataNascita>1989-12-31</dataNascita> <sesso>F</sesso> <nazionalita>380<

efficient way to transform XML document into tabular dataset in SQL because cross apply xml query performs exponentially worse as xml grows

六眼飞鱼酱① 提交于 2020-05-30 20:57:27
问题 I have a big size XML document (50.000-100,000) that needs to be parsed on Azure SQL that looks like this: <?xml version="1.0" encoding="UTF-8"?> <covid-19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://covid-19.iss.it/XMLSchema/0.1/"> <pazienti> <paziente> <codiceRegionalePaziente>0123456789</codiceRegionalePaziente> <codiceFiscale/> <nome>nomeBulk01</nome> <cognome>cognomeBulk01</cognome> <dataNascita>1989-12-31</dataNascita> <sesso>F</sesso> <nazionalita>380<

Active Directory(AD) Authentication in Azure Sql not working

倾然丶 夕夏残阳落幕 提交于 2020-05-29 04:42:26
问题 I am trying to get Azure AD Authentication working against my Azure SQL Database. I created a PaaS database and it's associated PaaS Sql Server. I assigned MY Azure AD account as "Active Directory admin" of the "PaaS Sql Server". Next, I logged in to SSMS using MY domain account to create the user: CREATE USER [xxx@yyy.com] FROM EXTERNAL PROVIDER; GO sp_addrolemember db_datareader, [xxx@yyy.com]; GO sp_addrolemember db_datawriter, [xxx@yyy.com]; GO When I attempt to login with the xxxxx@yyy

Active Directory(AD) Authentication in Azure Sql not working

可紊 提交于 2020-05-29 04:42:06
问题 I am trying to get Azure AD Authentication working against my Azure SQL Database. I created a PaaS database and it's associated PaaS Sql Server. I assigned MY Azure AD account as "Active Directory admin" of the "PaaS Sql Server". Next, I logged in to SSMS using MY domain account to create the user: CREATE USER [xxx@yyy.com] FROM EXTERNAL PROVIDER; GO sp_addrolemember db_datareader, [xxx@yyy.com]; GO sp_addrolemember db_datawriter, [xxx@yyy.com]; GO When I attempt to login with the xxxxx@yyy

iterate nested list in json msg by cql stream analytics

不羁岁月 提交于 2020-05-14 12:13:20
问题 I have a json msg coming from iotHub like: { "deviceId": "abc", "topic": "data", "data": { "varname1": [{ "t": "timestamp1", "v": "value1", "f": "respondFrame1" }, { "t": "timestamp2", "v": "value2", "f": "respondFrame2" }], "varname2": [{ "t": "timestamp1", "v": "value1", "f": "respondFrame1" }, { "t": "timestamp2", "v": "value2", "f": "respondFrame2" }] } } and want to store this by azure stream analytics job into a transact sql like this: ID | deviceId | varname | timestamp | respondFrame