Check db error
Msg 8935, Level 16, State 1, Line 3 Table error: Object ID 1470628282, index ID 3, partition ID 72057594045333504, alloc unit ID 72057594051231744 (type In-row data). The previous link (1:34611616) on...
View ArticleInserts into a SQL database table that has a varbinary(max) column can be slow
We have the following stored procedure:ALTER procedure [dbo].[spMergePPObjectBlobProperty] ( @values dbo.udtPPObjectBlobProperty readonly ) as begin begin try declare @updatetime datetime set...
View ArticleCreate table with ANSI_NULLS, ANSI_PADDING, CONCAT_NULL_YIELDS_NULL set off
What's the actual impact create table with deprecated set option ANSI_NULLS, ANSI_PADDING, CONCAT_NULL_YIELDS_NULL set off?How to fix this ? Need to recreate the whole table ?If the features is really...
View ArticleSQL 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 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 Articlepermissions on sa login
our applications are using sa to connect to sql sererwe want to get away from thatwe are attempting to rename sa to be satemp and assign with limited permisisonsto accomplish this I am attempting to...
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 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 ArticleSQL Licencing for Training databases
I have couple of databases that are used for training classes every now and then,, do i have to host these on a prod server with SQL licence or can they be treated as a non prod Databases ?
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 Articlevirtual_memory_committed_kb from sys.dm_os_memory_clerks
Can anyone tell what's virtual_memory_committed_kb from sys.dm_os_memory_clerksvirtual_memory_committed_kbbigintSpecifies the amount of virtual memory that is committed by a memory clerk. The amount of...
View ArticleMEMORY BROKER
Hi Allhttps://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-os-memory-brokers-transact-sql?view=sql-server-ver15what's the memory broker that monitor the...
View ArticleRow estimation for query using variable
I have a table CREATE TABLE BillingInfo( ID INT IDENTITY, BillingDate DATETIME, BillingAmt MONEY, BillingDesc varchar(500)); ALTER TABLE BillingInfo ADD CONSTRAINT [PK_BillingInfo_ID] PRIMARY KEY...
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 ArticlePerformance of the database when I modify the MAXDOP parameter
Hi all I don't understand the behavior of the database when I modify the MAXDOP parameter. We have modified the MAXDOP parameter (from value 0 to value 4) to improve some processes with a quite good...
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 Articlewhat's actually CMEMTHREAD
https://www.sqlskills.com/help/waits/cmemthread/what's actually "TREAD-safe-memory-object" ?
View ArticleSQL Server Crash
Hello,Our database unexpectedly shutdown, SQL Server version:Microsoft SQL Server 2017 (RTM) - 14.0.1000.169 (X64) Aug 22 2017 17:04:49 Copyright (C) 2017 Microsoft Corporation Enterprise Edition...
View Article