19,466 questions with SQL Server-related tags

Sort by: Updated
2 answers

Azure SQL Managed Instance authentication with Windows AD users

I am looking to migrate from Azure SQL VMs to Azure SQL Managed Instance and I had a few questions related to integrating this with an on-premises Windows Active Directory domain. We have some applications running on separate Windows VMs. These VMs are…

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,013 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,655 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,155 questions
asked 2024-11-12T18:56:58.6033333+00:00
testacc9877 0 Reputation points
edited an answer 2024-11-12T21:49:12.6566667+00:00
Sina Salam 12,011 Reputation points
0 answers

ADO.NET connection failure to Azure Database from VS 2022 SSIS Package running against SQL Server 2022 using Microsoft SQLClient Data Provider

I have a SSIS package running on SQL Server 2022 in VS2022 that connects to a 3rd party Azure database as a source with ADO.NET using Microsoft Entra Password that has been running successfully for a few years. However, recently I needed to make…

Azure SQL Database
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,593 questions
asked 2024-11-12T13:59:46.06+00:00
Teresa Thomas 1 Reputation point
edited the question 2024-11-12T21:40:47.3566667+00:00
VarunTha 9,420 Reputation points Microsoft Vendor
2 answers

SQL Server Management Studio OutOfMemory on import flat file

Hello, Throughout the years I have been working with large datasets (CSV's) in combination with SSMS and a local SQL server DB (Developer DB). A week ago I have worked on a particular CSV (6gb) on my old and trusty laptop. What I always do is use the…

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,013 questions
asked 2024-11-12T16:06:44.2333333+00:00
Camille Schopmeijer 0 Reputation points
edited an answer 2024-11-12T20:50:13.1666667+00:00
Yitzhak Khabinsky 25,956 Reputation points
4 answers

tsql sum amount recursively without recursive cte

Hi, I need help creating recursive query to sum up Amounts of all ChildIDs for parent ID=1 node. Table definition and data below. This is for SQL serverless where Recursive CTE is not supported. So left join would do, The table is large and the query…

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,013 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,657 questions
asked 2024-11-07T18:28:16.3166667+00:00
Julia9534 1 Reputation point
edited an answer 2024-11-12T20:34:51.6066667+00:00
Julia9534 1 Reputation point
0 answers

SSL Error connecting to Azure SQL

A connection was successfully established with the server, but then an error occurred during the pre-login handshake I am getting this error when testing from SSMS and also from linked servers and SSIS providers. Around the 4th November, this connection…

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,013 questions
asked 2024-11-11T18:34:16.8+00:00
Mike Fleming 0 Reputation points
commented 2024-11-12T16:53:21.7266667+00:00
Vijayalaxmi Kattimani 415 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

CXSYNC wait type appearing on Queries that didnt normally have it and TimeOuts occurr

In Azure SQL Managed Instnace: Queries that are complex but run in a timely way normally ... sometimes start getting this wait: CXSYNC_PORT and run until our App timeout threshold of 30sec. This has happened for various databases on the same Managed…

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,013 questions
asked 2024-11-08T16:17:44.3366667+00:00
John Heimiller 5 Reputation points
commented 2024-11-12T16:38:24.97+00:00
John Heimiller 5 Reputation points
2 answers

Issue with Deploying Azure SQL Server Managed Instances: “Your deployment failed”

Hello, I am encountering an issue while trying to deploy Azure SQL Server Managed Instances. The deployment process fails with the message “Your deployment failed.” I have attached a screenshot of the deployment details and included the error message…

Azure SQL Database
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,231 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,013 questions
asked 2024-11-05T09:15:43.5866667+00:00
DoFast 26 Reputation points
commented 2024-11-12T16:16:53.0333333+00:00
Mahesh Kurva 725 Reputation points Microsoft Vendor
11 answers

Power Automate: SQL - Transform Data using Power Query recently started giving AADSTS7000113: Application 'f3b07414-6bf4-46e6-b63f-56941f3f4128' is not authorized to make application on-behalf-of calls error

All my Transform Data Using Power Query steps in my flows are receiving the following message after Friday afternoon. I had some successful runs before that, perhaps 30 minutes prior. The error I am receiving is the following: AADSTS7000113: Application…

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,013 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,770 questions
asked 2024-11-10T19:44:50.0566667+00:00
Waqar Qureshi 40 Reputation points
edited an answer 2024-11-12T15:03:25.81+00:00
Łukasz Pęsik 0 Reputation points
2 answers

Transpose rows into columns based on ID.

I have a table with two columns, ProductionEventId and Value. The ProductionEventId column contains unique ids that repeat for each value in the Value column. See below. How can I have one occurrence of the ProductionEventId with the multiple values in…

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,013 questions
asked 2024-11-11T20:25:35.5633333+00:00
Michael Deaton 0 Reputation points
edited the question 2024-11-12T14:50:03+00:00
Michael Deaton 0 Reputation points
0 answers

When always on secondary database is goes in suspended mode? What could be the reasons? how can we fix if it goes frequently?

When always on secondary database is goes in suspended mode? What could be the reasons? how can we fix if it goes frequently?

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,013 questions
asked 2024-11-12T11:32:24.24+00:00
commented 2024-11-12T13:58:51.17+00:00
Olaf Helper 45,111 Reputation points
2 answers One of the answers was accepted by the question author.

Remove SQL 2022 Web Edition Product Key

We need to export a small SQL server and hand it off to another organization. The problem is the SQL server is using our product key for SQL. Is there a way to remove the SQL product key so it will be blank and make them enter in a new key? I have been…

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,013 questions
asked 2024-11-08T20:37:43.4466667+00:00
rr-4098 1,581 Reputation points
accepted 2024-11-12T13:58:26.12+00:00
rr-4098 1,581 Reputation points
0 answers

Identifying Unused Tables in AAS Cube Over the Last 30 Days

I have a question regarding identifying unused tables in Azure Analysis Services (AAS). In our organization, we’re using AAS, and due to limited storage, our cube refresh is failing. I’ve been tasked with finding a list of tables that haven’t been used…

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
457 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,002 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,940 questions
asked 2024-11-07T16:03:40.6433333+00:00
madmax 0 Reputation points
edited a comment 2024-11-12T13:32:05.18+00:00
madmax 0 Reputation points
1 answer

Database backup fails

But no issues when manual backup in the same location. THere is no space issue. I have another server with same service pack and has no issues. This is the eversion #: Microsoft SQL Server 2016 (SP2-GDR) (KB4583460) - 13.0.5108.50 (X64) May 20 2022…

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,013 questions
asked 2024-11-11T23:38:23.9133333+00:00
Avyayah 1,271 Reputation points
commented 2024-11-12T12:21:46.3133333+00:00
Avyayah 1,271 Reputation points
1 answer

Microsoft.AnalysisServices 19.86.2.1 is not adapted to work on Linux.

Hi, When I try to connect to Server from Microsoft.AnalysisServices.Tabular on my local machine which is on Windows, it works correctly. While in Kubernetes cluster I get the error The type initializer for…

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,291 questions
asked 2024-10-29T14:04:51.6566667+00:00
Oleksandr Demianchuk 0 Reputation points
answered 2024-11-12T11:36:24.12+00:00
Oleksandr Demianchuk 0 Reputation points
1 answer

Error -2054422515 installing SQL Server Express

We use a desktop application to upgrade/install sql server on diffferent PC'S but it is failing. Logs from Event Viewer Log Name: Application Source: ANAAC Color Manager Installer Date: 11/12/2024 10:29:21 AM Event ID: …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,924 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,013 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,027 questions
asked 2024-11-12T05:48:10.1566667+00:00
Lalitha 0 Reputation points
commented 2024-11-12T09:45:18.9866667+00:00
Lalitha 0 Reputation points
1 answer

I would like to start using Microsoft Teams as a ticketing system; if that is possible.

Good afternoon, my name is Frederick and I'm housing operations coordinator. I would like to start using Microsoft Teams as a ticketing system; if that is possible. Can you point me in the right direction so someone can help me set that up. Our school…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,326 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,013 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,287 questions
asked 2024-11-07T18:12:39.0233333+00:00
Buie, Frederick D 0 Reputation points
commented 2024-11-12T06:46:06.6466667+00:00
Robin Sheng-MSFT 3,765 Reputation points Microsoft Vendor
1 answer

SQL Server 2022 Always On Synchronous Mode Delay

Hello I currently have a SQL Server 2022 Always On cluster deployed, with three servers, one for the master and two for the synchronous replicas. During testing, the app exits after a successful login, and after 7 operations, there will be 1-2 automatic…

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,013 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,593 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,013 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,593 questions
asked 2024-11-08T11:00:02.89+00:00
Lee l 0 Reputation points
answered 2024-11-12T03:24:10.0233333+00:00
ZoeHui-MSFT 37,671 Reputation points
1 answer

SQL Server 2022 Always On Synchronous Mode Delay

Hello I currently have a SQL Server 2022 Always On cluster deployed, with three servers, one for the master and two for the synchronous replicas. During testing, the app exits after a successful login, and after 7 operations, there will be 1-2 automatic…

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,013 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,593 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,013 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,593 questions
asked 2024-11-08T11:00:02.89+00:00
Lee l 0 Reputation points
answered 2024-11-12T03:24:10.0233333+00:00
ZoeHui-MSFT 37,671 Reputation points
1 answer

Convert SQl query to Linq query in c#

Below is my full sql query need to convert into linq query select distinct pd.personId from t1 (NOLOCK) pd inner join t2 (NOLOCK) fo on fo.personId = pd.createdBy and fo.isActive=1 left join t3 (NOLOCK) fap on pd.personId=fap.personId and…

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,013 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,027 questions
asked 2024-11-11T19:30:53.5033333+00:00
coder rock 356 Reputation points
edited an answer 2024-11-12T03:14:07.6833333+00:00
Hongrui Yu-MSFT 2,540 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

TSQL month name to date

Hi, I have a table with a MNTH column that contains month prefixes - 'JUL', 'AUG', 'SEP', 'OCT', etc., up to 'JUN' of next year. My financial year for this data starts in July and ends in June. Thus, in this data set - start from 202407 up to 202506. In…

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,013 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,657 questions
asked 2024-11-11T16:52:47.7066667+00:00
Zimiso 141 Reputation points
edited the question 2024-11-12T01:00:29.89+00:00
LiHongMSFT-4306 28,041 Reputation points