permissions 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 ArticleSQL Server resource pool MAX_MEMORY_PERCENT
MIN_MEMORY_PERCENT and MAX_MEMORY_PERCENTThese settings are the minimum and maximum amount of memory reserved for the resource pool that can not be shared with other resource pools. The memory...
View Articlesys.dm_tran_version_store : version_sequence_num
In what chances that version_sequence_num will increase ?when two transaction update two separate row of the table, it should only generate to records on table sys.dm_tran_version_store with...
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 ArticleIndex Rebuild with is_ms_shipped = 0
Fellow DBAs,I have a custom fragmentation script that has been running great for years - it still is.But, I have seen different fragmentation scripts that include is_ms_shipped = 0 and some do not have...
View ArticleWhat are the steps needed to turn off NTFS file compression on Read/Write...
HiI have a site where someone turned on NTFS file compression after the databases were created. I need to turn off the compression but I wanted to make sure I didn't miss any steps. I am concerned...
View ArticleShrinking of logfle of a database
Logfile was about 80G reduced the size by shrinking the logfile. It appears shrinking the logfile did not release all the space. After the backup of the database can I change the recovery mode to...
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 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 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 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 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 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 ArticleSQM file generated in a sqllserver
There are SQM files auto generated in SQLserver. How can We stop autogenerating the files.
View ArticlePSSDIAG Output
Hi Team,Just curious to know that, Generally what tools Microsoft use to Analyze PSSDIAG Output.
View ArticleThe operating system returned error 21
The operating system returned error 21(The device is not ready.) to SQL Server during a read at offset 0x00000000440000 in file 'T:\Trans\ReportServer.mdf'. Additional messages in the SQL Server error...
View ArticleOnline rebuild index
for online rebuild index , I am reading the following linkshttps://docs.microsoft.com/en-us/sql/relational-databases/indexes/how-online-index-operations-work?view=sql-server-ver15And see if which part...
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 ArticleHow to interpret Native Compilation Advisor report
so which code is blocking this procedure to natively compile
View Article