Yes, I have definitely used them on my laptop, running Windows 11 and the developer edition of SQL Server. And it doesn't have an AG in place. This seems to have been a known issue with the RTM version of SQL Server 2022: https://learn.microsoft.com/en-us/answers/questions/1131043/sql-2022-bug-filestream It affected filestream as well. That article says it was fixed with CU1. Do you have the latest CU for SQL Server 2022 installed? That might well fix it. Also, have you tested in-memory OLTP before? We've been testing it since 2014, and with every version, it gets more usable but it's no panacea for performance, except in very, very narrow use cases. What are you hoping to achieve with it? Almost all the real performance benefit comes from moving your code into in-memory native code, but the coding surface for that is very narrow, and it's very hard to make use of it. If all you do is move the tables, it's usually of little benefit. In fact, it can make the performance worse, as the way it works with interop and the way it spools data from in-memory back to legacy tables can lead to signficant performance penalties. Most people have used this feature more in theory than in practice. Be wary.
Utilizing Memory-Optimized Tables Without Enabling Always On Availability
Hello,
I'm currently working on a SQL Server project where I extensively use memory-optimized tables to enhance performance. My development environment is SQL Server Developer Edition on Windows 11. While attempting to configure my database for memory-optimized tables, I encountered a requirement to enable Always On Availability Groups (AG) after creating a filegroup for memory-optimized data and trying to add a file to it. The exact error message was: "Could not process the operation. Always On Availability Groups replica manager is disabled on this instance of SQL Server. Enable Always On Availability Groups, by using the SQL Server Configuration Manager. Then, restart the SQL Server service, and retry the currently operation." Given that Always On AG is typically associated with Windows Server environments and my setup is on Windows 11, I'm facing a dilemma on how to proceed. I understand Always On AG requires Windows Server Failover Clustering (WSFC), which isn't directly available on Windows 11. My questions are:
- Is there a way to use memory-optimized tables without the need to enable Always On AG, especially considering my development environment on Windows 11?
- Alternatively, is there any workaround or method to enable Always On AG functionality in a Windows 11 environment?
I appreciate any guidance or recommendations on how to address this issue, as I aim to continue my development work without switching to a Windows Server environment if possible. Thank you.
SQL Server Other
-
Greg Low 1,980 Reputation points Microsoft Regional Director
2024-02-09T11:35:44.31+00:00
1 additional answer
Sort by: Most helpful
-
Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
2024-02-09T22:50:07.5166667+00:00 As Greg says, this was a bug in SQL 2022 RTM with named instances. This is a common mistake by developers who download SQL Server Developer Edition. They are unaware of the fact that Microsoft regularly publishes Cumulative Updates. You can get the most recent Cumulative Update here. And make sure to keep your instance updated to avoid running into known issues that have been fixed.