20,729 questions with SQL Server-related tags

Sort by: Updated
0 answers

SSRS Report Export to Excel Shows Content Warning

Hello, In our application, while trying to open an SSRS report exported to Excel, we are getting the following warning message: “We found a problem with some content in excelfilename.xlsx. Do you want us to recover as much as we can? If you trust the…

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,076 questions
asked 2025-08-29T06:01:53.6166667+00:00
Akshayaa Kalyanavenkatesh 60 Reputation points
0 answers

Long running query that occurs every 3 hours, can't tell WHERE it is coming from

There is a query running every three hours that spikes my DTU upto 100% . It is: subscriptions - Query ID 10126 I can not tell who or what is calling this query, how could find out what it is? This is my…

SQL Server Database Engine
asked 2025-08-28T23:18:51.15+00:00
Len Ott 25 Reputation points
0 answers

cant get SQL server to connect to SSMA

I don't know enough about SQL Server to really tell you what is going wrong, SSMA won't connect to anything I've downloaded SQL Express twice and I can't seem to get this thing to work, AI keep saying something about a .mof file I can't find on my…

SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
574 questions
asked 2025-08-28T21:26:31.44+00:00
Judy Graham 0 Reputation points
commented 2025-08-28T22:22:46.1466667+00:00
Judy Graham 0 Reputation points
0 answers

How to resolve issue of Audit log table containing incorrect data?

We have created a parent table & child table in SQL Server database. For one parent record, there are multiple child records. When a child record in updated, a Stored Procedure is called in which a few fields of all the child records are updated that…

SQL Server | Other
asked 2025-08-28T09:25:17.3166667+00:00
John 0 Reputation points
commented 2025-08-28T21:27:51.1366667+00:00
Erland Sommarskog 124.9K Reputation points MVP Volunteer Moderator
0 answers

WCF EndpointNotFoundException when connecting to

System.ServiceModel.EndpointNotFoundException: Could not connect to the remote endpoint 18775299031 Server stack trace: at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout) at…

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,721 questions
asked 2025-08-28T14:42:13.1433333+00:00
shreyansh raj 0 Reputation points
commented 2025-08-28T21:17:28.2533333+00:00
Erland Sommarskog 124.9K Reputation points MVP Volunteer Moderator
2 answers

Cores Per Socket Best Practices for VMs

Hello, What configuration offers better performance for SQL Server Enterprise Edition Running on virtual machines like VMWare: multiple sockets with one core each (e.g., 8 sockets, 1 core per socket) or a multi-core setup (e.g., 1 socket, 8 cores)?…

SQL Server Database Engine
asked 2025-07-22T19:08:33.1466667+00:00
Wallace, Glenn 20 Reputation points
commented 2025-08-28T16:41:47.5533333+00:00
Ben Miller-(DBADuck) 195 Reputation points MVP
1 answer

I have a 2019 SQL database which is the primary, I want to set up a secondary server using logshipping. What is the highest version on SQL server I can install. Upgrading the primary is not an option.

The supplier has a transactional database that is on a SQL 2019 server. They provide us a reporting copy using logshipping. We would like to install the latest possible version of SQL server that would be compatible. Will be able to get away with a SQL…

SQL Server Database Engine
asked 2025-08-28T12:47:25.7833333+00:00
Shipra Bajpai NHS 0 Reputation points
answered 2025-08-28T15:08:51.2166667+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator
3 answers

What is Microsoft Plan for upgrading SSRS Report Viewer Control to Unified .NET platform

What is the Microsoft Plan for upgrading SSRS Report Viewer Control to Unified .NET platform? Link…

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,076 questions
asked 2025-03-12T20:54:28.5033333+00:00
Ambar Prajapati 0 Reputation points
answered 2025-08-28T09:34:38.75+00:00
Sathesh Dhanasekaran 0 Reputation points
1 answer

sql cluster failover slower failover when only cluster and client network fails much faster when all networks fail

We have setup a simple two node SQL Server Cluster using SQL cluster (not WSFC windows cluster), plus witness disk, with two network adaptors on each node Cluster network 1 = 'Cluster and Client' / Cluster network 2 = 'Cluster only'. SQL server version -…

SQL Server | Other
asked 2025-08-12T14:58:24.01+00:00
Pal Ban 0 Reputation points
answered 2025-08-28T07:03:27.9666667+00:00
Nam Bui (WICLOUD CORPORATION) 80 Reputation points Microsoft External Staff Moderator
1 answer

Cannot connect to SQL Server - username issue

Trying to connect to SQL Server and getting "Login failed for user '<username>'. (Microsoft SQL Server, Error: 18456). My other colleagues are using the same credentials to log in with success. Don't know what else to do.

SQL Server Database Engine
asked 2025-08-26T15:19:50.46+00:00
Hugo Mendonca 0 Reputation points
commented 2025-08-28T06:27:10.5166667+00:00
Erland Sommarskog 124.9K Reputation points MVP Volunteer Moderator
1 answer

Performance degrade after migrating to SQL server 2022

Application performance degraded by 15-20 % after moving the database from SQL server 2019 to 2022 on a stand alone server. The resources and maintenance remains the same as the 2019.

SQL Server Database Engine
asked 2025-08-27T13:56:31.7266667+00:00
Ginesh 0 Reputation points
answered 2025-08-27T21:28:12.16+00:00
Erland Sommarskog 124.9K Reputation points MVP Volunteer Moderator
1 answer

Can I safely use NORECOVERY option when restoring a database by a BAK file?

Hello, I am trying to extract the data from a customer-provided BAK file and then discard the SQL server container after. I am using the syntax below. RESTORE DATABASE [ABC123] FROM DISK = '/var/opt/mssql/data/ABC123.bak' WITH MOVE 'ABC123.mdf'…

SQL Server Database Engine
asked 2025-08-22T21:26:12.3866667+00:00
dave 0 Reputation points
commented 2025-08-27T21:02:13.0733333+00:00
Erland Sommarskog 124.9K Reputation points MVP Volunteer Moderator
1 answer

SQL 2025 release candidate - 180day expiration too for (free edition) express version?

SQL 2025 release candidate - 180day expiration too for (free edition) express version?

SQL Server Database Engine
asked 2025-08-27T07:20:53.24+00:00
Salka, Milan 21 Reputation points
edited an answer 2025-08-27T17:39:42.6766667+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator
1 answer

Error execute a SSIS Packed with SQL Agent

Hello, we have a very strange problem when executing an SSIS package with the SQL Agent. The package has the following tasks for an Excel file: 1. Check file in the source path. 2. Copy file to the destination path. 3. Open file in the destination…

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,721 questions
asked 2025-07-31T11:15:48.86+00:00
Wolfgang 0 Reputation points
commented 2025-08-27T14:07:27.7366667+00:00
Wolfgang 0 Reputation points
1 answer

SQL cluster cannot failover. SQL services cannot start

Hi, I have a 2 node SQL server cluster which cannot failover. The SQL program and DB are located in the shared disk When we try to failover the resource, it cannot auto failover from node A to B. We need to stop node A, manual active all resource in node…

Windows for business | Windows Server | Storage high availability | Clustering and high availability
SQL Server | Other
asked 2024-08-12T04:36:02.9333333+00:00
Chong 871 Reputation points
commented 2025-08-27T12:14:05.32+00:00
Spencer Cook 0 Reputation points
2 answers One of the answers was accepted by the question author.

MSOLEDBSQL19 driver seems to ignore TrustServerCertificate=yes if SQL Server Force Encryption is yes

Microsoft SQL Server 2019 with GDR 2101 (KB5021125) is installed on a Windows Server 2019 computer. The SQL Server has a self-signed certificate and is configured with Force Encryption = yes. A Windows Server 2012 R2 computer has Microsoft OLEDB…

SQL Server | Other
asked 2023-06-29T16:59:55.2+00:00
Mitch Gershonowitz 25 Reputation points
commented 2025-08-26T22:25:44.45+00:00
Nayak, Lakshminarayan 20 Reputation points
1 answer

installation Signing Certificate Authority pour MSSQL.

Il semble que le problème ne soit pas lié à l'application, mais plutôt à SQL Server qui tombe en panne. Ainsi, si MM Server et Client sont en cours d'exécution et que SQL Server tombe en panne, MM Client ne peut pas charger/actualiser les données de la…

SQL Server Database Engine
asked 2025-08-26T16:46:04.66+00:00
ANDRE CONGO 0 Reputation points
answered 2025-08-26T21:38:45.5433333+00:00
Erland Sommarskog 124.9K Reputation points MVP Volunteer Moderator
3 answers

Best practice with sp_syspolicy_events_reader and ##MS_PolicyEventProcessingLogin##

The SQL Server logs on our primary replica (Microsoft SQL Server 2022 with Always On) has been filling up with this repeated message: The activated proc '[dbo].[sp_syspolicy_events_reader]' running on queue 'SQLAG1_msdb.dbo.syspolicy_event_queue'…

SQL Server Database Engine
asked 2025-08-05T14:53:19.4333333+00:00
anna@tec 0 Reputation points
answered 2025-08-26T20:36:57.6366667+00:00
Erland Sommarskog 124.9K Reputation points MVP Volunteer Moderator
1 answer

"Is it okay to run Ola Hallengren’s index rebuild and stats update script from a separate database instead of master, and will this impact fragmentation handling?"

In my organisation, we run Ola Hallengren’s index rebuild and update stats script on a separate database instead of the master database. Is this a recommended practice, and will it affect index fragmentation or reorganisation?"

SQL Server Database Engine
asked 2025-08-26T18:17:37.55+00:00
N B 0 Reputation points
edited an answer 2025-08-26T19:56:26.97+00:00
Alberto Morillo 34,926 Reputation points MVP Volunteer Moderator
1 answer

I have a two procedure, first one for Insert and the second one for update, When I update the table using "prcImage", it doesn't update. Can anyone help me to solve this. I provide the table and store procedures check it and also I provide the .cs Code

This is my table CREATE TABLE [dbo].[UserProfile] ON [PRIMARY] This is my 1st Store Procedure ALTER proc [dbo].[prcDataSubmit] @fname varchar(20), @lname varchar(10), @contact char(15), @password varchar(50) as begin declare @yy char(4) declare @mm…

Developer technologies | ASP.NET | Other
SQL Server | Other
asked 2025-01-22T21:25:30.67+00:00
Md Khalid Hossain 0 Reputation points
answered 2025-08-26T15:42:09.6466667+00:00
Bruce (SqlWork.com) 79,526 Reputation points Volunteer Moderator