5,909 questions with Azure SQL Database tags

Sort by: Updated
2 answers

@@ROWCOUNT issue

Hi there, I had the below code and it worked fine in counting the records inserted and logging insert counts. CREATE PROCEDURE ProcessCustomer AS BEGIN DECLARE @RowsInserted INT; -- Insert into the final table and capture row count …

Azure SQL Database
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,675 questions
asked 2025-01-11T05:26:26.6833333+00:00
RJ 206 Reputation points
answered 2025-01-13T16:46:39.1233333+00:00
RJ 206 Reputation points
1 answer

Timeline for Release of NEXT GEN Feature for Managed Service in Azure

What is the timeline for the release of the NEXT GEN feature for managed service in Azure? It has been in testing since March 2024. When will it be out of preview mode for general use?

Azure SQL Database
Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
157 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,282 questions
asked 2025-01-07T15:40:00.9233333+00:00
Anonymous
commented 2025-01-13T16:42:23.0033333+00:00
Mahesh Kurva 1,700 Reputation points Microsoft Vendor
2 answers

SQL Azure Failover Group Deployment Fails - Gateway Timeout

I've been trying to create a failover group for a SQL Azure Database Pool (DTU model). The failover database (in location East US) has the same configuration (credentials and service level) as the primary database (in location South Central US). When…

Azure SQL Database
asked 2025-01-11T00:53:39.0666667+00:00
Drew F 1 Reputation point
commented 2025-01-13T15:41:58.8133333+00:00
NIKHILA NETHIKUNTA 4,020 Reputation points Microsoft Vendor
1 answer

Request for Insights on Enabling CDC with ADR on Azure SQL Managed Instance

I am reaching out to check if anyone has prior experience or insights on enabling and managing these features together in Azure SQL Managed Instance. Specifically, we are interested in understanding: • Any challenges or considerations when enabling CDC…

Azure SQL Database
asked 2025-01-10T06:30:36.1366667+00:00
Satya Varaprasad 1 Reputation point
commented 2025-01-13T15:39:28.49+00:00
NIKHILA NETHIKUNTA 4,020 Reputation points Microsoft Vendor
1 answer

Backup and restore for Azure SQL database using sqlpackage.

I am using sqlpackage to export and import my Azure SQL Database as .bacpac files. My database contains: User-defined schemas and tables SQL Agent-related objects, such as jobs and the ##MS_JobAccount## user External users, such as service principals…

Azure SQL Database
asked 2025-01-09T07:03:12.3266667+00:00
Palash Mathur 60 Reputation points
commented 2025-01-13T15:38:44.56+00:00
NIKHILA NETHIKUNTA 4,020 Reputation points Microsoft Vendor
2 answers

Azure SQL server database pricing

I would like to know if the pricing of Azure SQL Server depends on the individual database we create in it or if there is an option at the server-level plan to make unlimited databases in one SQL server.

Azure SQL Database
asked 2025-01-09T03:12:58.3666667+00:00
TP021 [Sailesh Kumar] 0 Reputation points
commented 2025-01-13T15:37:21.52+00:00
NIKHILA NETHIKUNTA 4,020 Reputation points Microsoft Vendor
0 answers

Azure SQL Database - on master - long execution of a query program TdService

On Azure SQL Database in Azure there is a really long query running (many days). The details: database_name master program_name TdService It looks like a bug from an Azure SQL Service. On diagnostics while trying to send a support ticket: The…

Azure SQL Database
asked 2025-01-13T14:30:08.76+00:00
RaTheMigthy 0 Reputation points
commented 2025-01-13T15:30:18.13+00:00
Sina Salam 15,011 Reputation points
1 answer

Impact of Increasing database size on existing data ?

Hi, we are planning to increase database size as we have run out of space but just wondering the impact of this change on the existing data. Will there be any data loss ?

Azure SQL Database
asked 2025-01-13T11:21:18.9066667+00:00
Turkar, Riya-ZA 0 Reputation points
edited the question 2025-01-13T15:23:54.8866667+00:00
VarunTha 10,775 Reputation points Microsoft Vendor
2 answers

Getting error creating database in SQL Elastic Pool, but can do it through the portal

I have a SQL Elastic Pool, MyPool, configured with 200 eDTUs and 800 GB storage It contains a database, DBPrimary, with data space used = 127 GB, max storage = 300 GB I have another database outside of the pool, DBProd, with data space used = 117 GB, Max…

Azure SQL Database
asked 2024-12-26T21:50:02.2966667+00:00
Joe DeNicola 0 Reputation points
answered 2025-01-13T15:13:58.2433333+00:00
Sina Salam 15,011 Reputation points
1 answer One of the answers was accepted by the question author.

Question about GA for Next-gen GP for Azure SQL Managed Instance

Hi, Public-preview for Next-gen GP for Azure SQL Managed Instance is available since 21 March 2024, especially support for 32TB (https://techcommunity.microsoft.com/t5/azure-sql-blog/introducing-azure-sql-managed-instance-next-gen-gp/ba-p/4092647). Are…

Azure SQL Database
asked 2024-10-08T13:19:07.2333333+00:00
Marcin Kycia 20 Reputation points
commented 2025-01-13T14:06:57.8366667+00:00
Biju Joy 0 Reputation points
1 answer One of the answers was accepted by the question author.

Unable to Disable Active Trial for Microsoft Defender for SQL in Azure – How to Cancel and Stop Billing

Hello, I am facing an issue where I am unable to disable an active trial for Microsoft Defender for SQL in my Azure account. I have already turned off Cloud Workload Protection (CWP) and see that the Defender for SQL plan is marked as "off,"…

Azure SQL Database
asked 2025-01-09T17:28:53.0933333+00:00
Kristiyan Vasilev 20 Reputation points
accepted 2025-01-13T10:20:40.43+00:00
Kristiyan Vasilev 20 Reputation points
1 answer

Guidance With Azure DMS Tool For Maria DB Database Migration

Hello, I am currently working on a Database migration project migrating data from a MariaDB database hosted on AWS over to an Azure SQL DB as part of a cloud consolidation program using an IPsec VPN tunnel. While Azure Database for MariaDB would seem…

Azure Database Migration service
Azure SQL Database
Azure Database for MariaDB
Azure Database for MariaDB
An Azure managed MariaDB database service for app development and deployment.
58 questions
asked 2025-01-10T15:48:06.91+00:00
Marc Hedgley 165 Reputation points
commented 2025-01-13T09:34:22.9766667+00:00
Marc Hedgley 165 Reputation points
1 answer

Issue with Creating Linked Server from Azure SQL Managed Instance to On-Premises SQL Server

Hi, Interestingly, I was able to create a linked server in the reverse direction—from the on-premises SQL Server to my Azure SQL MI—using a remote login and password for authentication. However, when I attempt to establish the link from Azure SQL MI to…

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,282 questions
asked 2025-01-10T13:05:06.25+00:00
GP 16 Reputation points
commented 2025-01-13T09:16:07.0033333+00:00
Vijayalaxmi Kattimani 905 Reputation points Microsoft Vendor
2 answers

✗ Microsoft.SqlServer.Prose.Import.BcpProcessException: Error inserting data into table.

As I understand it, the issue is when importing csv files on Azure Data Studio, the data type is a string and has to convert to another data type. But the error can't convert the string to another data type, how am I supposed to bypass this if I can only…

Azure SQL Database
Azure Data Studio
Azure Data Studio
A cross-platform database tool for data professionals using on-premises and cloud data platforms on Windows, macOS, and Linux.
127 questions
asked 2025-01-08T13:10:34.2833333+00:00
Ryan Tay 5 Reputation points
commented 2025-01-13T08:39:08.4333333+00:00
Vijayalaxmi Kattimani 905 Reputation points Microsoft Vendor
1 answer

Identify the SQL query causing spikes

Our MS SQL database in Azure runs at only a few percent DTU - except for occasional spikes to 100%. How do I find out which query is causing the spikes?

Azure SQL Database
asked 2025-01-12T17:25:00.53+00:00
Mike Edge 0 Reputation points
commented 2025-01-13T08:37:48.98+00:00
Sai Raghunadh M 1,760 Reputation points Microsoft Vendor
1 answer

How to fix issue - The server principal is not able to access the database under the current security context.

I have a Data Factory (DF) and SQL Managed Instance (MI) with 2 databases "dbx" and "dby". Using script activity, my DF executes my stored procedure (SP) written in X. When SP performs a merge from dbx.Table1 to dby.Table1 -->…

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,100 questions
asked 2025-01-07T03:09:06.5133333+00:00
CyrusDaguro-1527 5 Reputation points
commented 2025-01-13T06:28:25.5866667+00:00
Sai Raghunadh M 1,760 Reputation points Microsoft Vendor
2 answers

When a new database is created database_service_objectives table isn't updated with the new row for that DB

We are resetting the data in database by deleting the existing database and creating a new database with the same name. However database_service_objectives table isn't creating a new row with the latest database_id. the previous database_id is still…

Azure SQL Database
asked 2025-01-08T10:46:19.2966667+00:00
KALAHASTI N MaheshKumar 0 Reputation points
edited a comment 2025-01-13T06:16:43.79+00:00
Sai Raghunadh M 1,760 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to fix code throwing exception : Microsoft.Data.SqlClient.SqlException: 'Login failed for user '

Hi All, I'm encountering an issue while trying to connect to an Azure SQL Database using Microsoft Entra Authentication (formerly Azure AD). I am using DefaultAzureCredential in my .NET application to authenticate and retrieve the access token, but…

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,282 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,188 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,150 questions
asked 2025-01-03T00:29:43.2+00:00
Krishna Basavaraj K S 20 Reputation points
edited the question 2025-01-13T06:03:32.1033333+00:00
Raja Pothuraju 10,760 Reputation points Microsoft Vendor
2 answers

Columnstore dmv sys.column_store_segments some columns always NULL Azure Database

Within an Azure SQL database, I have a clustered column store index (many millions of records), with a number of columns of which are mainly INT based. When I interrogate the dmv sys.column_store_segments, the columns [has_nulls], [min_data_id] and…

Azure SQL Database
asked 2024-12-02T16:30:23.0233333+00:00
Arthur Olcot 5 Reputation points
commented 2025-01-12T18:03:52.19+00:00
Erland Sommarskog 115.1K Reputation points MVP
3 answers

Retrieving Admin Credentials for SQL Server Database Backup

Connecting to a database from SQL Server Management Studio with normal authentication is not allowing backup operations. An ex-employee who was the admin did not provide any credentials. As a result, backup cannot be taken, and attempts to assign roles…

Azure SQL Database
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,224 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,282 questions
asked 2025-01-06T04:56:22.5866667+00:00
Mohana Reddy 80 Reputation points
commented 2025-01-10T08:48:42.06+00:00
Vijayalaxmi Kattimani 905 Reputation points Microsoft Vendor