Skip to main content

Questions tagged [sql-server-2022]

SQL Server 2022 (major build version 16.00.xxxx). Please also tag sql-server.

0 votes
1 answer
22 views

The documentation tells us what happens when session timeout for a synchronous Availability Group replica expires "Even if a disconnected replica is configured for synchronous-commit mode, ...
J. Mini's user avatar
  • 1,362
0 votes
0 answers
32 views

I am trying to set up queues within the same database (on the same server instance). I would like a ProcessStart queue and a ProcessEnd queue. The ProcessStart queue will receive messages with a set ...
squillman's user avatar
  • 1,227
2 votes
1 answer
378 views

For all HA or DR solutions in SQL Server, I have heard that it is smart to have a table with a timestamp column in each database and to have an Agent Job run every minute to update that timestamp with ...
J. Mini's user avatar
  • 1,362
4 votes
1 answer
135 views

This time last year, I set the page_verify database option to checksum on a very old and very large database. We do weekly index maintenance, so I hope that most of the database's pages have been ...
J. Mini's user avatar
  • 1,362
3 votes
1 answer
78 views

Follow up question for this answer regarding the excerpt of the sys.dm_db_index_usage_stats doc: The user_updates column is a counter of maintenance on the index caused by insert, update, or delete ...
Ronaldo's user avatar
  • 6,511
4 votes
2 answers
374 views

We have a 3 node availability group running on SQL 2022. The application which has its databases hosted on the AG queries @@SERVERNAME as part of licensing checks. If @@SERVERNAME doesn't match what ...
Kirky's user avatar
  • 347
0 votes
0 answers
34 views

I've been asked to look at trimming the amount of change information that we're currently storing in a temporal table. The background to this is: When the organisation that I work for initially ...
Ian Henderson's user avatar
4 votes
2 answers
575 views

Can anyone help me understand what's happening here.... I'm trying to get consistent performance from a query being called from a third-party application. Changing the query itself isn't an option. ...
FrugalShaun's user avatar
-1 votes
1 answer
57 views

we have a 10+TB database. Whenever we failover it, the databases becomes with a session running a null command, with a HADR_DB_COMMAND wait_type. I believe this is related to a rollback or something? ...
Racer SQL's user avatar
  • 7,558
1 vote
1 answer
139 views

Context I have been experimenting with incremental statistics a lot. I do not know of any online resource about them that I have not read. Despite all of this, I just don't understand what trace flag ...
J. Mini's user avatar
  • 1,362
1 vote
0 answers
83 views

Context Aside from victims of latch contention, everybody gave up on memory-optimized table variables pretty quickly. Probably around the time they realised that they still don't have statistics. Yet, ...
J. Mini's user avatar
  • 1,362
2 votes
1 answer
90 views

I have a requirement to upgrade several SQL Server 2008 SP3 databases to a new environment on new servers running SQL Server 2022. As per Microsoft’s documentation, SQL Server 2008 cannot be upgraded ...
Sachintha Nanayakkara's user avatar
0 votes
0 answers
85 views

Example code below populates a PhoneNumber table and associates those PhoneNumberId's with an OrderNumber. As written I am getting the error message: The current transaction cannot be committed and ...
Kirk Saunders's user avatar
0 votes
1 answer
119 views

Consider the following script on the 10 GB StackOverflow2010 database. Be warned that it clears the plan cache. IF NOT EXISTS (SELECT * FROM sys.types WHERE is_table_type = 1 AND name = 'ExampleTvp') ...
J. Mini's user avatar
  • 1,362
7 votes
2 answers
228 views

In database on SQL Server 2022 Standard Edition (CU19) with default collation SQL_Latin1_General_CP1_CI_AS I am splitting CHAR(31) separated values using STRING_SPLIT. I have an issue when the ...
gotqn's user avatar
  • 4,420

15 30 50 per page
1
2 3 4 5
17