Quantcast
Channel: SQL Server Database Engine forum

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 Article


SQL 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 Article


sys.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 Article

dm_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 Article

Index 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 Article


What 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 Article

Image may be NSFW.
Clik here to view.

Shrinking 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 Article

Image may be NSFW.
Clik here to view.

Transaction 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 Article


Image may be NSFW.
Clik here to view.

Filter 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 Article


Incremental 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

SQL 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 Article

auto 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 Article

Image may be NSFW.
Clik here to view.

Row 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 Article


SQM file generated in a sqllserver

There are SQM files auto generated in SQLserver. How can We stop autogenerating the files.

View Article

PSSDIAG Output

Hi Team,Just curious to know that, Generally what tools Microsoft use to Analyze PSSDIAG Output.

View Article


MSDN subscription

how to associate a sql server database to an MSDN subscription

View Article

The 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 Article


Image may be NSFW.
Clik here to view.

Online 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 Article

Image may be NSFW.
Clik here to view.

MSSQL 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 Article

Image may be NSFW.
Clik here to view.

How to interpret Native Compilation Advisor report

so which code is blocking this procedure to natively compile 

View Article