21,355 questions with SQL Server-related tags

Sort by: Updated
0 answers

CDC change Data Capture on High availibility AlwaysOn 2019

Hello,  I have three nodes (SQL Server 2019) Always On availability group configuration -FYI. I have applied the CDC (Change Data Capture) jobs [cdc.DBName_capture] and [cdc.DBName_cleanup] on all three nodes. However, when a failover occurs from the…

SQL Server Database Engine
asked 2026-02-19T08:29:44.65+00:00
Mona Seddik 20 Reputation points
answered 2026-02-19T08:29:56.36+00:00
Q&A Assist
1 answer

My SQL server exits after running for a few seconds in docker

Hi, I tried running MS SQL server in docker and it exiting withing a few seconds. I am running this on my MAC book. I want to connect Azure data studio to it. Can you please let me know a command that works. I have tried several options and nothing…

SQL Server Database Engine
asked 2026-02-17T17:21:11.53+00:00
LALITHA MARUTHACHALAM 0 Reputation points
edited a comment 2026-02-19T07:06:30.8233333+00:00
Ankit Yadav 11,255 Reputation points Microsoft External Staff Moderator
0 answers

Broken upgrade from SQL Server 2017 to 2022

Hello, SQL Upgrade was started at 2026-02-08 17:52:04. End time was logged as 2026-02-08 17:52:15 with final result "Pending". But in the Detail.txt file I see that last log entry is about 18:10. How can I recognize what is the reason of the…

SQL Server Database Engine
asked 2026-02-17T15:19:23.0733333+00:00
Michał Lis 0 Reputation points
commented 2026-02-19T06:59:17.9433333+00:00
Michał Lis 0 Reputation points
3 answers

STAR Schema Model Design

Hello, I am planning to create START schema model but need to use existing views but looking data inside the views which have multiple records so it's hard to use ID which makes unique records. I was thinking to add ROW_NUMBER() to create Unique Key for…

SQL Server Database Engine
asked 2026-01-28T02:53:43.0233333+00:00
pdsqsql 436 Reputation points
commented 2026-02-19T05:13:03.15+00:00
Lakshmi Narayana Garikapati 825 Reputation points Microsoft External Staff Moderator
1 answer

I cannot download the software

It appears that the account you login to your computer with does not actually have full Administrator rights, which is a requirement for installation of the 4-CU and dependent software (SQL..., etc.). Contact your IT department so that they can: …

SQL Server | Other
asked 2026-02-19T03:37:41+00:00
Marlon King 0 Reputation points
edited the question 2026-02-19T04:56:35.89+00:00
Michael Le (WICLOUD CORPORATION) 10,840 Reputation points Microsoft External Staff Moderator
2 answers

STIntersection() hangs forever

Hello, when I execute this STIntersection() query for two valid polygons (in this case CurvePolygons), it will run forever and will cause (very) high CPU usage! The problem exists at least from SQL2016 to SQL2025 (with latest updates installed). See…

SQL Server Database Engine
asked 2026-02-18T18:14:47.0433333+00:00
MarkusW 0 Reputation points
commented 2026-02-19T02:12:55.9533333+00:00
MarkusW 0 Reputation points
4 answers One of the answers was accepted by the question author.

Syntax error in the statement

Hi, I wrote the following query and trying to figure out the syntax error: incorrect syntax near WHERE. DECLARE @SQL NVARCHAR(MAX) SET @SQL = (SELECT 'SELECT COUNT(*) FROM rv.' + table_name, +','+ QUOTENAME((table_name) + ' as table_name ' FROM…

SQL Server | SQL Server Transact-SQL
asked 2026-02-17T18:25:30.1766667+00:00
Naomi Nosonovsky 8,901 Reputation points
edited an answer 2026-02-18T23:33:50.67+00:00
Yitzhak Khabinsky 27,096 Reputation points
2 answers

What is SQL error ID 8179 and how to fix it?

The customer often found NAV Server error at Event Viewer (Application log), Event ID 216, MicrosoftDynamicsNavServer$MBKNAV.  It was NavSqlException, SQL error ID 8179 (“Could not find prepared statement with handle …”).  This issue often occurs when…

SQL Server | SQL Server Transact-SQL
asked 2026-02-18T02:58:30.2366667+00:00
Chirayu Traihirun 0 Reputation points
answered 2026-02-18T22:05:17.56+00:00
Erland Sommarskog 132.4K Reputation points MVP Volunteer Moderator
1 answer

server 2025 upgrade cause large files to fail during port forward

when files are port forward after the sever 2025 upgrade they fail Moved from Microsoft 365 and Office | Other

SQL Server | Other
asked 2026-02-18T06:19:39.7766667+00:00
Marcel Van Der Merwe 0 Reputation points
commented 2026-02-18T21:49:17.2333333+00:00
Erland Sommarskog 132.4K Reputation points MVP Volunteer Moderator
1 answer

optmization tecniques.

Wants to check query optimization tecniques.please guide SELECT FileName, FileDate FROM BROK.BROK_Staging ORDER BY FileDate DESC Join: https://teams.microsoft.com/meet/44686160893216?p=iDBacftSUDKBlVGWuf

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.
3,141 questions
asked 2026-02-18T09:58:35.11+00:00
Syntek S 0 Reputation points
commented 2026-02-18T21:46:24.23+00:00
Erland Sommarskog 132.4K Reputation points MVP Volunteer Moderator
2 answers

An error was raised while trying to open the database

I am opening tickets with everyone since I am stuck on the attached error when opening compress.

SQL Server | Other
asked 2026-02-18T18:52:39.0533333+00:00
Hoffman, Rhonda 0 Reputation points
recommended 2026-02-18T21:44:04.48+00:00
Erland Sommarskog 132.4K Reputation points MVP Volunteer Moderator
2 answers

SSIS package fails to read file from UNC path in SQL Server Agent job (Error 0x80004005)

SSIS package fails to read file from UNC path in SQL Server Agent job (Error 0x80004005) We have an SSIS package that reads data from a file on a network share (UNC path). For example, the file is located at \\EXAMPLE_DOMAIN\SharedFolder\file.csv (domain…

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,776 questions
asked 2026-02-18T11:58:59.3166667+00:00
Thanyapong Latthikul 0 Reputation points
answered 2026-02-18T21:42:56.0266667+00:00
Erland Sommarskog 132.4K Reputation points MVP Volunteer Moderator
4 answers

Can a SQLServer 2016 AG with one database be setup with two separate Managed Instance Links?

I’m planning a migration of a SQL Server 2016 Always On AG with a single 4TB database to Azure SQL Managed Instance. We already have one MI acting as a read‑replica for reporting and analytics. As part of the migration, I’m considering deploying a second…

SQL Server | Other
asked 2026-02-13T20:22:46.6633333+00:00
Abimbola Adeniran 86 Reputation points
edited an answer 2026-02-18T21:07:23.3633333+00:00
Mladen Andzic - Msft 11 Reputation points Microsoft Employee
1 answer

Unable to login On-Prem SQL server

Hi Team, We are not able to login On-Prem SQL server. Could you please help with this.

SQL Server Database Engine
asked 2026-02-12T17:23:33.8433333+00:00
Vikash Kumar (HCL Technologies Corporate Services) 0 Reputation points Microsoft External Staff
commented 2026-02-18T10:06:25.9933333+00:00
Akhil Gajavelly 1,165 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Informatica to MS SQL Connections hold locks and block

Informatica to MS SQL Connections hold locks and block

SQL Server Database Engine
asked 2026-02-04T10:41:26.6166667+00:00
Garner, Michael (IT/UK) 20 Reputation points
accepted 2026-02-18T09:12:56.49+00:00
Garner, Michael (IT/UK) 20 Reputation points
1 answer

SQL Server 2025 Standard Key not working for Power BI Report Server

I am attempting to convert my evaluation edition of Power BI Report Server to a fully activated. I have read in both of the articles linked below that the exact same key used to activate SQL Server 2025 Standard (17.x) is what you should use to activate…

SQL Server | Other
asked 2026-01-30T15:38:53.39+00:00
Kyle Minard 0 Reputation points
commented 2026-02-18T08:43:03.4866667+00:00
Marino Leenen (TNS IT) 0 Reputation points
0 answers

How to fix error received while inserting into table through report builder into oracle database

I am trying to insert records through report builder into oracle database and it is showing dataset related error

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.
3,141 questions
asked 2026-02-17T17:02:14.06+00:00
Madani, Ramya Krishna 0 Reputation points
commented 2026-02-18T07:39:50.3+00:00
Madani, Ramya Krishna 0 Reputation points
1 answer

Database is disappearing

Every time I create a table, it stays for a while (as long as 24 hrs), and I see it gets dropped. I get resource not available. Why am I losing the database?

SQL Server Database Engine
asked 2026-02-18T00:52:58.0866667+00:00
Bhaskar Kumar Chowdhury 0 Reputation points
commented 2026-02-18T07:35:45.6066667+00:00
Lakshmi Narayana Garikapati 825 Reputation points Microsoft External Staff Moderator
0 answers

Why am I getting this exit code 14 error in my project logs?

SQL Server Database Engine
asked 2026-02-09T14:18:18.99+00:00
Raghavendra Katageri 0 Reputation points
commented 2026-02-18T06:57:21.8866667+00:00
Akhil Gajavelly 1,165 Reputation points Microsoft External Staff Moderator
2 answers

unable install sql on on pc due to power shell error

unable install sql on on pc due to power shell error

SQL Server | SQL Server Transact-SQL
asked 2026-02-08T08:45:29.2966667+00:00
pravin bhingardive 0 Reputation points
edited a comment 2026-02-18T06:34:20.31+00:00
Akhil Gajavelly 1,165 Reputation points Microsoft External Staff Moderator