azure-sql-server

Single SQL query to find null values in all columns in a data base

杀马特。学长 韩版系。学妹 提交于 2021-02-08 12:05:58
问题 I would like to identify the number of null values in each column in all tables.I have a data base it consist of around 250 tables.Most of them are in use.The problem is almost all tables contain unwanted columns which created for some short term use.Now we want to identify columns with null values for all tables.Since the count of table is large and time is less.I would like to know an easiest way to identify null record count on each table in column wise. I tried this query which i got from

Calling Azure SQL Database REST API gives the error: The authentication scheme of Basic is not supported

北慕城南 提交于 2021-01-29 07:36:45
问题 In the following code of my WPF Core client app , I am trying to use this Azure SQL Database REST API to delete a database in my Azure subscription. But I am getting the error shown below: Question : What I may be missing, and how can we resolve the issue? Remark : I found a similar example here, and I'm not sure why my code is not working. The same user name (with SQL Admin access) and password works fine when I connect to the same Azure SQL Db from SSMS - 2019 on my laptop. Code : const

Connect to Azure SQL Server from computer with dynamic external IP

柔情痞子 提交于 2020-12-04 08:35:03
问题 I am trying to connect an on-premises laptop with dynamic external IP to our Azure SQL Server. To do this, I created a virtual network gateway and connected the laptop to the gateway. Also, I added a private endpoint to the SQL server. After this, I can successfully connect to the SQL server IP using telnet, and if I resolve the SQL server FQDS in hosts file, I can connect to the server via SSMS. But without hosts file, the laptop always tries to connect to the SQL server via its public

Login failed for user '<token-identified principal>'. Token is expired when using Azure Function app and Azure SQL Service using Managed Identity

瘦欲@ 提交于 2020-07-22 06:01:06
问题 I am using a function app which is service bus triggered. It connects to Azure SQL Server using Managed Identity . The connection is created using the following code. new SqlConnection(this.ConnectionString) { // AzureServiceTokenProvider handles caching the token and refreshing it before it expires AccessToken = new AzureServiceTokenProvider().GetAccessTokenAsync("https://database.windows.net/").Result }; I get a few thousand events every day, and all these are failing on connecting to the

VNet Integration For Azure Web App and Azure SQL Server

牧云@^-^@ 提交于 2020-07-05 20:53:44
问题 I have an Azure Web App and an Azure SQL Server, both in the same subscription. Both of them are connected to the same VNet Subnet as shown in the below snapshots. The SQL Server is configured not to Allow Azure Resources and Services to access the server, as it should only permit access from either the connected subnet or a set of IP rules. Unfortunately, the SQL Server is actively refusing any connection from the web app stating that the web app IP is not allowed to access the server. The

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

How to configure mail on Azure SQL Database

谁说胖子不能爱 提交于 2020-01-20 08:36:18
问题 We are moving from Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64) to Microsoft SQL Azure (RTM) - 12.0.2000.8 Previously we send mail from database mail if a particular table have not updated in a particular time interval. But i tried to do the same on Azure mail but seems like this functionality is not available on this. 回答1: You can write a Stored Procedure to query the table and return results, read the results in an Azure WebJob, Logic App or Azure Function, schedule the execution and

In Azure, how can you configure an alert or notification when a SQL Server failover happened?

对着背影说爱祢 提交于 2020-01-16 08:51:11
问题 In Azure, how can you configure an alert or notification when a SQL Server failover happened if you setup a SQL server with Failover groups and failover policy is set to automatic? If it can't be setup in Monitor can it be scripted elsewhere? 回答1: Azure SQL database only support these alert metrics: We could not using the alert when SQL Server failure happened. You can get this from this document: Create alerts for Azure SQL Database and Data Warehouse using Azure portal. Hope this helps. 回答2

Azure SQL Serverless tier never shuts down

荒凉一梦 提交于 2020-01-13 02:54:30
问题 I'm experimenting with the Serverless tier in Azure SQL, but the database never "sleeps" because it seems that Azure is continually querying the database behind the scenes. I created the database via and ARM template. The "Compute utilisation" and "App CPU Billed" charts on the database overview show that the database is being hit regularly (even though I am not making any queries myself). The Top queries in "Query Performance Insight" are: (@ip_address_value bigint,@start_ip varchar(45)