21,658 questions

Sort by: Updated
2 answers

SQL Server DBCC SHRINKFILE is not reducing database file size

We are facing an issue with shrinking a large SQL Server database file. The affected database xyz and the data file is Data. The current file size is approximately 1.16 TB, out of which approximately 664 GB is occupied by data. There is approximately 527…

SQL Server
SQL Server

A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.

9 questions
asked 2026-11-30T09:30:57.4266667+00:00
Shishir Kumar 0 Reputation points
answered 2026-11-30T15:15:57.96+00:00
Deepesh Dhake 1,325 Reputation points
2 answers

What is the best approach for identifying Data Quality issues using SQL?

I am looking to improve how I use SQL for Data Quality analysis. What SQL techniques or patterns are recommended for identifying issues such as duplicates, null values, invalid values and inconsistencies between related tables? I am particularly…

SQL Server Integration Services
SQL Server Integration Services

A Microsoft platform for building enterprise-level data integration and data transformations solutions.

2,788 questions
asked 2026-11-30T10:13:19.72+00:00
Mphela Legodi 0 Reputation points
edited an answer 2026-11-30T14:19:08.0766667+00:00
Deepesh Dhake 1,325 Reputation points
2 answers

SQL Server 2022 CU27 (16.0.4295.3): Assertion at recovery.cpp:15949 (lp->GetOpCode () != LOP_NULL) and logrec.cpp:136 (Unclassifed log op) on spid47s

We are hitting recurring SQL Server assertion failures on sqlservr.exe (PID 9044, TID 9064, SPID 47 / spid47s) running SQL Server 2022 CU27 (16.0.4295.3, branch sql2022_rtm_qfe-cu27) on Windows Server x64. This same assertion pattern occurred on RTM…

SQL Server Database Engine
asked 2026-11-30T08:13:27.24+00:00
Darren Chow Fei 0 Reputation points
answered 2026-11-30T14:08:58.4+00:00
Erland Sommarskog 138K Reputation points MVP Volunteer Moderator
2 answers

ODBC Driver 18.7.1.1: application crash when an older MSVC runtime is loaded

After updating SQL Server Management Studio 22 from 22.11.3 to 22.12.1, an existing WhereScape RED 8.6.6.0 installation started failing whenever we attempted to create or recreate objects. The SSMS update also installed Microsoft ODBC Driver for SQL…

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

14,672 questions
asked 2026-11-26T16:42:18.53+00:00
Pascal Schär 0 Reputation points
commented 2026-11-28T11:29:26.68+00:00
Viorel 127.2K Reputation points
2 answers

Clarification on whether SQLNCLIRDA11 is a valid Microsoft SQL Server provider

Hello Team, We have identified a provider named SQLNCLIRDA11 on one of our Windows environments while enumerating installed SQL Server. However, we have not been able to find official Microsoft documentation identifying SQLNCLIRDA11 as a supported SQL…

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

14,672 questions
asked 2026-11-27T12:03:14.4833333+00:00
Abhishek Modi (amodi) 20 Reputation points
answered 2026-11-27T12:26:24.6666667+00:00
Mariusz Wojcik 21 Reputation points
2 answers

Supported method to detect implicit conversions and missing indexes without executing T-SQL

For a given T-SQL statement, we need to programmatically detect, without executing the statement: Performance-affecting implicit conversions. Missing-index recommendations. We are evaluating the estimated execution plan obtained through SET…

SQL Server Database Engine
asked 2026-11-24T08:27:14.3066667+00:00
Lochan Gabda (lgabda) 0 Reputation points
edited the question 2026-11-26T15:59:13.44+00:00
Erland Sommarskog 138K Reputation points MVP Volunteer Moderator
3 answers One of the answers was accepted by the question author.

Master Data Services web app renders empty after SQL Server CU26 update

Hi everyone, SQL Server 2022 CU26 appears to break Master Data Services web application. After patching to CU26 (16.0.4265.3), the MDS web application loads, but is completely empty. The MDS database and data remain intact and are visible through SQL…

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

14,672 questions
asked 2026-09-03T11:43:17.93+00:00
Simon Lenk 35 Reputation points
accepted 2026-11-26T09:48:57.98+00:00
Simon Lenk 35 Reputation points
1 answer

SSIS invalid datatype

I have a mapping in SSIS between two tables that both contain a column defined as a date. When creating the source query SSIS defines the date column as a WSTR datatype. I added a cast as date to the query and defined the resulting column as a date. …

SQL Server Integration Services
SQL Server Integration Services

A Microsoft platform for building enterprise-level data integration and data transformations solutions.

2,788 questions
asked 2026-11-25T17:52:04.2533333+00:00
Ken K 0 Reputation points
commented 2026-11-25T20:35:49.74+00:00
Erland Sommarskog 138K Reputation points MVP Volunteer Moderator
2 answers

SQL Server 2022 MDS not showing data on portal after update

Hi After installing an updates on SQL Server 2022 i have problem with MDS. When i go to website and open a model I do not see data in it. Data are avaiable in views and by Excel addin. Is this some bug or I could have broke sth? Daniel

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

14,672 questions
asked 2026-08-28T09:36:30.6566667+00:00
Stawik 0 Reputation points
commented 2026-11-25T07:12:33.9666667+00:00
Peter Nagy 80 Reputation points
1 answer One of the answers was accepted by the question author.

Enterprise AI & Advanced Analytics Solutions Integrated with On-Premises Power BI and SQL Server

Subject: Technical Inquiry: Enterprise AI & Advanced Analytics Solutions Integrated with On-Premises Power BI and SQL Server Dear Microsoft Technical Support / Enterprise Solutions Team, I am writing to seek technical guidance and architectural…

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,179 questions
asked 2026-11-24T07:38:22.2766667+00:00
milad bandegani 20 Reputation points
edited an answer 2026-11-24T08:52:36.2333333+00:00
milad bandegani 20 Reputation points
1 answer One of the answers was accepted by the question author.

How can I know the SQL version of .bak file and how to restore the different SQL server version .bak file ?

When I restore .bak file via ssms, the exception " The media family on device <backup file path>is incorrectly formed. SQL Server cannot process this media family. RESTORE HEADERONLY is terminating abnormally. (.Net SqlClient Data…

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

14,672 questions
asked 2023-01-06T10:14:00.16+00:00
May Zar 21 Reputation points
commented 2026-11-23T17:31:51.7933333+00:00
Duan Steyn 0 Reputation points
1 answer One of the answers was accepted by the question author.

Need original microsoft hecksum value for latest Microsoft Command Line Utilities for SQL Server before downloading

Hi, I need to download the latest version of Microsoft Command Line Utilities x64 for SQL Server for Windows OS. I can see it is available here: https://learn.microsoft.com/en-us/sql/tools/bcp/bcp-download-install?view=sql-server-ver17 Before installing…

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

14,672 questions
asked 2026-09-22T12:47:14.6166667+00:00
GVC 30 Reputation points
commented 2026-11-23T10:32:58.36+00:00
GVC 30 Reputation points
1 answer

SQL Server 2022 RTM (16.0.1000.6): Are R and Python external language catalog entries created by default?

Title SQL Server 2022 RTM (16.0.1000.6): Are R and Python external language catalog entries created by default? Question Hello Microsoft SQL Server Team, We are validating the catalog baseline of an isolated SQL Server 2022 Developer Edition test…

SQL Server Database Engine
asked 2026-11-21T08:24:58.6633333+00:00
MOHAMMED ALZAEEM 0 Reputation points
commented 2026-11-22T13:07:31.7966667+00:00
Erland Sommarskog 138K Reputation points MVP Volunteer Moderator
2 answers

keep getting random errors everytime i try to restore a database

Hello, I would love to have some remote assistance with my issue. I'm trying to restore a database from an old computer to a new one, but the old computer is on version 12 and any new computer I try to use wants me to upgrade to version 22, and I keep…

SQL Server Database Engine
asked 2026-08-10T15:54:44.6833333+00:00
Alex Negrich 0 Reputation points
answered 2026-11-22T10:31:26.42+00:00
Duan Steyn 0 Reputation points
1 answer One of the answers was accepted by the question author.

SQL Server 2022 RTM (16.0.1000.6): Are R and Python external language catalog entries created by default?

SQL Server 2022 RTM (16.0.1000.6): Are R and Python external language catalog entries created by default?

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,370 questions
asked 2026-11-22T08:34:26.1333333+00:00
Prasathkumar Murugan 25 Reputation points
commented 2026-11-22T08:35:20.1366667+00:00
Prasathkumar Murugan 25 Reputation points
1 answer

Log truncation on primary held with AVAILABILITY_REPLICA after seeding a database to Azure SQL MI via Managed Instance link

Situation We migrated a ~3TB CDC-enabled database from SQL2016AG to a new SQL Server 2022 (16.0.4325.4) two-node Always On AG in FULL recovery. Had some issues with cdc post cutover but had to recreate the the jobs using EXEC sys.sp_cdc_add_job and…

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

14,672 questions
asked 2026-11-21T17:31:23.1833333+00:00
Abimbola Adeniran 106 Reputation points
answered 2026-11-21T18:10:48.21+00:00
Erland Sommarskog 138K Reputation points MVP Volunteer Moderator
2 answers

Not able to shrink logs in Always On

Hi Folks, I am facing an issue on one of our Always On SQL Server Log backups are configured on secondary node I am trying to shrink the log files on primary server but it is not shrinking. when i checked log_reuse_wait_desc then it is showing…

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

14,672 questions
asked 2021-01-04T11:46:22.183+00:00
Yashwant Vishwakarma 116 Reputation points
commented 2026-11-21T16:48:59.26+00:00
Erland Sommarskog 138K Reputation points MVP Volunteer Moderator
2 answers One of the answers was accepted by the question author.

PBIRS Scheduled Refresh displays incorrect timestamp – one-hour discrepancy in LastRunTimeDescription

Product:Power BI Report Server (On-premises) Issue type: Technical / Break-fix Description: Following our recent server timezone configuration changes to use British Columbia local time, we noticed an inconsistency in the Scheduled Refresh timestamp…

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,179 questions
asked 2026-11-04T03:54:58.9+00:00
Karduri, Naveen 40 Reputation points
accepted 2026-11-20T22:47:04.4533333+00:00
Karduri, Naveen 40 Reputation points
1 answer One of the answers was accepted by the question author.

New CE ignores statistics for LIKE predicates on varchar columns with UTF-8 collations — fixed 9% guess (partially fixed in CE 170, `%x%` still affected, no backport)

SUMMARY For varchar columns using any UTF-8 collation (collation name ending in _UTF8), the modern cardinality estimator (CE model 120 to 160) never consults the histogram or string statistics for LIKE predicates. Every "LIKE 'prefix%'" and…

SQL Server Database Engine
asked 2026-08-21T14:07:13.2433333+00:00
Hubert 20 Reputation points
commented 2026-11-20T21:05:11.9833333+00:00
Erland Sommarskog 138K Reputation points MVP Volunteer Moderator
3 answers

VS2019 SSIS editor show blank if open the second time

After I made the changes and close the designer for that package (solution still up). I got blank screen if I open the same package again. I have to exit out the VS2019 and restart the IDE. It is very annoying and waste time when I have many package…

SQL Server Integration Services
SQL Server Integration Services

A Microsoft platform for building enterprise-level data integration and data transformations solutions.

2,788 questions
asked 2021-03-22T21:20:02.427+00:00
Jim Pan 1 Reputation point
commented 2026-11-20T18:14:01.11+00:00
Shahbaz Ali 80 Reputation points