620 questions with SQL Server Database Engine tags

Sort by: Updated
2 answers

MSDASQL ODBC queries to Linked Servers hang with no response after a couple weeks.

Hi all, Our current setup is a linked server to NetSuite ODBC using MSDASQL 17 as the provider. Everything works and runs fine and fast for about 2 weeks. Then the error will occur. There will be no error message or anything, but the query just…

SQL Server Database Engine
asked 2026-02-05T18:29:07.92+00:00
Ted 0 Reputation points
commented 2026-02-10T21:59:24.6266667+00:00
Ted 0 Reputation points
0 answers

Cannot connect to SQL Server

Let say i have server A and two sql server, SQL1 and SQL2. When Server A try connect to SQL1 then i got below error from SSMS, but if connect to SQL2 then the conneciton is working fine. Other servers beside Server A can connect to both SQL. A Anyone…

SQL Server Database Engine
asked 2026-02-10T01:37:21.5066667+00:00
Handian Sudianto 6,726 Reputation points
commented 2026-02-10T21:58:46.1533333+00:00
Erland Sommarskog 132.1K Reputation points MVP Volunteer Moderator
2 answers

SQL Server 2019 process crashes on specific query

Hello, I have a strange issue where I can crash SQL Server 2019 (fully patched at the time of writing to 15.0.4455.2) by issuing rather simple query with the following prerequisites: there is a multi statement table value function there is a view that…

SQL Server Database Engine
asked 2026-01-31T13:47:39.7966667+00:00
Filip Matijević 0 Reputation points
edited a comment 2026-02-10T19:58:01.04+00:00
Alberto Morillo 35,416 Reputation points MVP Volunteer Moderator
1 answer

Microsoft ODBC Driver for SQL Server Version 17.10.000

Microsoft ODBC Driver for SQL Server Version 17.10.000 returns with error "Test failed" Anyone can assist me with this issue or any ideas, currently it is installed on Windows 11 VM.

SQL Server Database Engine
asked 2025-08-14T13:52:40.3733333+00:00
Armando D. Hernandez 5 Reputation points
commented 2026-02-10T07:27:14.2066667+00:00
Lakshmi Narayana Garikapati 750 Reputation points Microsoft External Staff Moderator
1 answer

SQL SERVER (MSSQLSERVER) ERROR 1067

Hola, Tengo un servidor con Windows server 2025 y se le instaló SQL server 2022, se le estaban realizando configuraciones de always on y licenciamiento pero se tuvo que reiniciar. En el momento en que encendió el servidor, el servicio de SQL estaba…

SQL Server Database Engine
asked 2026-02-05T19:14:02.0633333+00:00
jorge miguel callejas quiroga 0 Reputation points
commented 2026-02-10T07:21:31.58+00:00
Lakshmi Narayana Garikapati 750 Reputation points Microsoft External Staff Moderator
2 answers

create table script for existing table

I want to create a create table script for existing table with indexes

SQL Server Database Engine
asked 2026-02-08T23:04:04.48+00:00
JOSHI, Vivek 0 Reputation points
commented 2026-02-09T22:58:31.9233333+00:00
JOSHI, Vivek 0 Reputation points
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-09T22:37:49.5733333+00:00
Erland Sommarskog 132.1K Reputation points MVP Volunteer Moderator
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-06T22:49:07.8933333+00:00
pdsqsql 436 Reputation points
1 answer

SQL Server 2025 LocalDb installation is missing components

According to https://learn.microsoft.com/en-us/sql/sql-server/editions-and-components-of-sql-server-2025 - "SQL Server Express LocalDB is a lightweight version of Express edition that has all its programmability features" Therefore I would…

SQL Server Database Engine
asked 2025-12-09T15:15:18.17+00:00
Duncan Smart 0 Reputation points
commented 2026-02-06T21:10:38.19+00:00
Erland Sommarskog 132.1K Reputation points MVP Volunteer Moderator
3 answers

SQL Server 2022 vs 2019 Query Performance gap

I am facing a performance issue with an SQL query. The query is generated dynamically via the webapp, I am testing with a static version to make things simpler. The SQL query includes temp tables and columns which get their values recalculated with…

SQL Server Database Engine
asked 2025-08-13T13:50:03.2533333+00:00
Alex Kipritsis 6 Reputation points
commented 2026-02-06T13:48:55.8166667+00:00
Erland Sommarskog 132.1K Reputation points MVP Volunteer Moderator
1 answer

How can I enforce and manage transparent data encryption on SQL Databases involved in replication and Always On AGs?

1.. How can I easily manage TDE -particularly where Database restores to lower environments and between servers is required frequently? 2.How can I manage TDE on Source and Target databases where transactional replication is currently setup?

SQL Server Database Engine
asked 2026-02-04T22:53:22.44+00:00
Ogunyemi, Lola 0 Reputation points
commented 2026-02-06T09:08:32.4866667+00:00
Akhil Gajavelly 1,155 Reputation points Microsoft External Staff Moderator
1 answer

Can not install SQL server

I tried to install QL server on my new laptop and seems it's not working at all. Herewith the summary: Summary_TUFA1420250817_20260114_071102.txt I installed using SQL2019-SSEI-Expr, even I tried uninstalled all and tried using SQL2022-SSEI-Expr but…

SQL Server Database Engine
asked 2026-01-26T15:01:06.8466667+00:00
Santos 0 Reputation points
commented 2026-02-05T21:42:01.2133333+00:00
Erland Sommarskog 132.1K Reputation points MVP Volunteer Moderator
2 answers

Steps for Rolling AG Upgrade with new VM's (2016 OS & SQL)

I found the steps for a rolling upgrade of a 2 node AG in place, however I wish to also Upgrade o/s.. Are the steps any different if we add a new upgraded VM to the cluster & join it to AG, then Failover DB from Primary to this New server. Next add…

SQL Server Database Engine
asked 2026-01-23T00:02:31.8433333+00:00
Brian Tobin 0 Reputation points
recommended 2026-02-05T10:49:25.36+00:00
Madhavi Taniparthi 0 Reputation points Microsoft External Staff Moderator
2 answers

My SSMS is installed but cannot connect. Error 40. SQL services are running but default instance fails.

My SSMS is installed but cannot connect. Error 40. SQL services are running but default instance fails.

SQL Server Database Engine
asked 2026-01-22T05:20:06.92+00:00
RAJAT GUPTA 0 Reputation points
recommended 2026-02-05T10:49:14.0666667+00:00
Madhavi Taniparthi 0 Reputation points Microsoft External Staff Moderator
3 answers One of the answers was accepted by the question author.

DatabaseMail.exe fails after SQL Server 2022 from CU22 to CU23 - Missing Microsoft.SqlServer.DatabaseMail.XEvents.dll

Product: SQL Server 2022 Enterprise Edition Affected Versions: CU23 Component: Database Mail Summary: Database Mail fails to start or send emails after updating to SQL Server 2022 CU23 (also observed on CU22) with error indicating missing assembly…

SQL Server Database Engine
asked 2026-01-19T07:29:32.3466667+00:00
Musa YILMAZ 80 Reputation points
edited an answer 2026-02-05T10:07:38.9633333+00:00
Oliver 120 Reputation points
2 answers

SQL volume license not available

SQL server license was purchased through our reseller. Volume license is still not visible on my admin account

SQL Server Database Engine
asked 2026-01-29T03:51:41.4333333+00:00
Lynda Lawrence 0 Reputation points
commented 2026-02-05T09:30:42.1733333+00:00
Lakshmi Narayana Garikapati 750 Reputation points Microsoft External Staff Moderator
2 answers

Request: SQL Server 2016 ESU Year 3 – Licensing, Cost and Ordering Process

Dear Microsoft Team, we require an official statement regarding "Extended Security Updates (ESU) Year 3" for "Microsoft SQL Server 2016 Standard Edition". System details: -Product: Microsoft SQL Server 2016 Standard…

SQL Server Database Engine
asked 2026-01-12T15:43:11.4633333+00:00
Moradi, Mahmoud 0 Reputation points
recommended 2026-02-05T09:15:14.9733333+00:00
Madhavi Taniparthi 0 Reputation points Microsoft External Staff Moderator
2 answers

SQL sever replication error replication is nit installed on this instance while configure distribution wizard

iam trying to configuring sql server replication using the distribution wizard

SQL Server Database Engine
asked 2026-01-10T12:55:02.71+00:00
Naruboyina palpavan 0 Reputation points
recommended 2026-02-05T09:14:46.4866667+00:00
Madhavi Taniparthi 0 Reputation points Microsoft External Staff Moderator
1 answer

SQL problem, not finding server type, need some guidance.

Was working with AI help yesterday on a SQL problem and had to pause until today, can I resume with some help? Have limited knowledge as a senior.

SQL Server Database Engine
asked 2026-01-09T14:00:21.9166667+00:00
VANN BURNEY 0 Reputation points
recommended 2026-02-05T09:14:26.51+00:00
Madhavi Taniparthi 0 Reputation points Microsoft External Staff Moderator
2 answers

Under a Select Plus agreement, there is no product key provided. How can SQL Server be upgraded in this case?

I have purchased SQL Server 2022 Standard. How can I upgrade from the free edition (Express / Evaluation) to SQL Server 2022 Standard? Our organization is under a Select Plus agreement, and we do not have a visible product key—only the License Summary is…

SQL Server Database Engine
asked 2025-12-31T07:42:13.85+00:00
唐宏 0 Reputation points
recommended 2026-02-05T09:05:06.8466667+00:00
Madhavi Taniparthi 0 Reputation points Microsoft External Staff Moderator