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
select query
declare @tmp table ( id INT IDENTITY(1,1), Summary varchar(500), type varchar(10), filename varchar(500) ) INSERT INTO @tmp select 'xxx', 'PDF', 'FileName1' union all select 'yyy', 'PDF', 'FileName2' union all Select 'yyy', 'MSG', 'filename3' union…
SQL Server | SQL Server Transact-SQL
Is this correct SQL query related forum
Hi Just wondering if this is the forum where I can ask SQL queries related questions? Sorry bit confused between other Tech forum.
SQL Server | SQL Server Transact-SQL
SQL Server Developer Edition usage for local development environment
Details Hello, We are a corporate user of SQL Server Enterprise Edition for our production workloads. For local, non-production development work, our developers and citizen developers often install SQL Server Developer Edition on their individual Windows…
SQL Server | Other
SQL Server 2022, Visual Studio 2022 - Microsoft VB 2022 script task interacting with Excel COM Errors
We have some SSIS packages that interact with Excel files. The SSIS packages output the data to the excel spreadsheets that include a template row so that numbers are formatted as numbers.. etc. There are also pivot tables that exist on other tabs of…
SQL Server Integration Services
How to fix sql server job schedules
How do we fix the issue when the sql agent job schedules are updated but do not run using the new schedule? We have a Microsoft SQL Server 2019 (RTM-CU32) (KB5054833) - 15.0.4430.1 (X64) instance. whenever we try to adjust an existing job schedule it…
SQL Server Database Engine
KB5065426 Security update - SQL Server Failover cluster (AlwaysOn) problems
Hi. Has anyone else experienced problems after the september KB installation on Windows Server 2025 ? We are running SQL Server 2022 in a Always-On scenario with Failover cluster on two nodes. After the installation, we are unable to connect to the…
SQL Server Database Engine
Trying to create a SSMS extension for autocomplete...
Hi everyone, I’m building an SSMS extension to provide a custom autocomplete experience, beyond the built-in IntelliSense. What I’m aiming for Offer multiple completion options. Allow refreshing/changing the suggestion sources via toolbar/menu…
SQL Server | Other
How to connect to Mysql
How can i connect to Mysql database in SSIS package?
SQL Server Reporting Services
SQL Server Integration Services
SQL Server 2025 Azure open AI Vector Embedding for ai_generate_embeddings
Hi Team, Currently I am trying to implement Vector Search using SQL Server 2025 and SSMS 21. For getting embeddings I am trying below code using ai_generate_embeddings, however i am getting empty embeddings. Code : Creating Credentials CREATE DATABASE…
SQL Server Database Engine
What collations does sys.fn_get_audit_file_v2 support
When calling the function on a server with default collation Latin1_General_100_CI_AS_SC_UTF8 I get this error: Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_100_CI_AS_SC_UTF8" in…
SQL Server Database Engine
statistics callection intervel in query store ?
Statistics Collection Interval: Defines the level of granularity for the collected runtime statistic, expressed in minutes. The default is 60 minutes. Consider using a lower value if you require finer granularity or less time to detect and mitigate…
SQL Server Database Engine
Performance Issue: Extremely Long Time to Add Large TDE-Encrypted Database to Cross-Site Availability Group
We are experiencing significant delays when adding large databases (4TB+) encrypted with Transparent Data Encryption (TDE) to an Availability Group replica servers using scripts. This operation takes an unacceptably long time is this an expected…
SQL Server Database Engine
Faster way to restore a MSSQL DB hosted on storage spaces.
Problem Summary We need a faster way to restore SQL Server Always On Availability Groups (AGs) that use Windows Storage Spaces, with each database on its own pool, from Nutanix app-consistent storage snapshots. Challenge Even with a per-DB pool, a…
SQL Server Database Engine
How to Patch SQL Server from CU+GDR 18 to CU+GDR32
Hi All, We have a SQL Server currently running: Version: RTM-CU18-GDR (KB5021124) – 15.0.4280.7 (x64) OS: Windows Server 2019 Standard Build 17763 We need to patch this server to the latest release (CU32 + GDR 15.0.4445.1). My question: Can we upgrade…
SQL Server Database Engine
SQL server 2022 job fails
Hello SQL Server 2022 16.0.4212.1 Installed in a windows server 2025 DC. SQLSERVERAGENT starts with NT Service\SQLSERVERAGENT I have some jobs that runs at the scheduled times. But one no. Failure: "Job failed. The job was invoked by Schedule 9…
SQL Server | SQL Server Transact-SQL
SQL Driver for MSSQL 2008 R2 and OpenJDK 17
Hi Guys, I am connecting Microsoft SQL Server 2008 R2 (SP3-GDR) (KB4057113) - 10.50.6560.0 (X64) from RHEL9.6 system having openJDK17 on it but getting below error. I tried with SQL driver version 13,12 and 10 but result is same always. So can you…
SQL Server Database Engine
Veracode scan issues on reportviewer dll files
I have some Veracode scan issues for the following .dll files: microsoft.reportviewer.common.dll CWE ID 331 - Standard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force…
SQL Server Reporting Services
ETL Framework In Production
Hello, I am leveraging Python within SQL Server Integration Services (SSIS) packages, primarily through the Execute Process Task. I am extracting Data from E2 SQL to Azure SQL Server. The connection has already been established. I am building complete…
SQL Server Integration Services
what is the price for sql server license enterprise edition?
Hi, my organization currently has SQL server standard edition which is going to expire next month. We are planning to upgrade the license to an enterprise version. Can you please help me with the pricing and also the installation guide for upgrade from…