SQL Server soft-numa
If the server has 2 socket and each has 8 phyiscal core per each. and enable hardware numa. So SQL Server 2016 will still do the auto-software numa configuration during startup ?
View Articledm_os_ring_buffers :RING_BUFFER_OOM'
;WITH rb AS (SELECT CAST (record as xml) record_xml FROM sys.dm_os_ring_buffersWHERE ring_buffer_type = 'RING_BUFFER_OOM' ) SELECT rx.value('(@id)[1]', 'bigint') AS RecordID ,DATEADD (ms, -1 *...
View ArticleTransaction Log recovery phases
https://docs.microsoft.com/en-us/azure/azure-sql/accelerated-database-recoveryI am not quite sure the design for Phase 2 Redo , why it's not start scanning from the last commit lsn ?
View Articleauto update stats : sample
Are there any threshold that the auto update stats will use FULL scan or default sample size ?I see some small tables, (around 10k rows), will trigger auto update stats with full scan.
View ArticleSQM file generated in a sqllserver
There are SQM files auto generated in SQLserver. How can We stop autogenerating the files.
View ArticlePolyBase : Access Data in cosmodb using mongodb fails with error
Hi All,I am trying to access data in my azure cosmosdb using SQL Server PolyBase (cosmosdb was created using "Azure Cosmos DB for MongoDB API) I am able to connect and access documents using mongo...
View ArticleMultipage allocation vs Large Pageallocation
May I know Multipage allocation vs Large Pageallocation are the same concept ?Any example of what type of Multipage allocation are?I check in my sys.dm_os_memory_clerks that column page_sizes_in_bytes...
View ArticleAzure MI SQL Server Wait Type CXSYNC_PORT
Does anyone have an understanding to explain a CXSYNC_PORT wait type on Azure SQL Managed Instance (MI). Or where good online information can be found?
View ArticleMSSQL in-memory : snapshot or no snapshot
For select/update a memory optimized table, what's the difference of having or not having table hints SNAPSHOT ?
View ArticleCost in Execution Plan summing up more than 100% , its some where 140%+
Hi AllI am using Azure SQL, while performance tuning I found one of the queries generated execution plan value more than 140%Query plan attached, Can you help me to understand if its a bug and can be...
View ArticleThe network name cannot be found at...
Hi,I have 3 Node SQL AOAG Cluster.Recently , while trying to check the Application status , I started seeing below error in previous primary (AG Replica1) where as the status is working in now primary...
View ArticleSafely stop full text catalog population?
SQL Server 2008 R2We noticed that one of our full text catalogs was incorrectly set to "Do not track changes" with a "Last population date" set months ago. As soon as we set the Track changes setting...
View ArticleDefault trace was stopped because of an error. Cause: 0x80070057(The...
Hello, We have MS SQL server 2016 Enterprise (SP2-CU5). After starting the server, the default trace file grows to 20 MB, and then stops with this error in ErrorLog:Trace ID '1' was stopped because of...
View Articlesys.dm_os_memory_pools pool_id
https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-os-memory-pools-transact-sql?view=sql-server-ver15By default pool_id 0 is internal pool and pool_id 1 is...
View ArticleSQL Server CE
The CE is base on 4 assumption Independence: Data distributions on different columns are assumed to be independent of each other, unless correlation information is available and usable.Uniformity:...
View Articlewhat's actually CMEMTHREAD
https://www.sqlskills.com/help/waits/cmemthread/what's actually "TREAD-safe-memory-object" ?
View ArticleFilter index question
I am comming to this examplehttps://www.mssqltips.com/sqlservertip/2353/performance-advantages-of-sql-server-filtered-statistics/CREATE TABLE MyRegionTable(idINT, Location NVARCHAR(100), USState...
View ArticleSQL Server 2016 slower than SQL Server 2008
I have two databases with the same data, one on an SQL Server 2008 R2 instance, and one on an SQL Server 2016 instance. Both SQL Server instances are on the same machine, and the database files are on...
View ArticleIncremental Stats partition level statistics are not used by SQL Server CE
We can do the UPDATE STATISTICS [WideWorldImporters].[Sales].[CustomerTransactions](CX_Sales_CustomerTransactions) WITH RESAMPLE ON PARTITIONS(3) on serveral partition . And the results should be...
View Article