#MS SQL SERVER, #PERFORMANCE TUNING What is Spool Operator in SQL Server: SQL Server Performance Tuning Spool operator scans the input and places a copy of each row in a hidden spool table that is stored in the tempdb database and existing only for the 11:27 Share
#PERFORMANCE TUNING, #SQL SERVER PERFORMANCE TUNING INTERVIEW QUESTIONS What do you understand by Column Density in SQL Server? Density in SQL Server: Density, when used to describe the data in a column, is a measure of how often duplicate values occur in that column. Another w 00:04 Share
#MS SQL SERVER, #PERFORMANCE TUNING SQL Server Lock Modes Depending on the type of access requested, SQL Server uses different lock modes while locking resources: • Shared (S) • Update (U) • Exclusive (X) • 22:21 Share
#MS SQL SERVER, #PERFORMANCE TUNING How you will filter the user sessions only? The following query will only return user sessions and will filter out the internal system sessions: SELECT * FROM sys.dm_exec_sessions WHERE is_user 22:19 Share
#MS SQL SERVER, #PERFORMANCE TUNING How you will get the sessions detail, in SQL Server(performance tuning)? We can easily access session detail by querying the sys.dm_exec_sessions DMV using the following query: SELECT * FROM sys.dm_exec_sessions; 22:18 Share
#MS SQL SERVER, #PERFORMANCE TUNING SQL Server Lock Implementation Levels SQL Server implements lock granularities at the following resource levels and in this order: Row (RID) Key (KEY) Page (PAG) Extent (EXT) Heap or B-tree (H 22:17 Share
#MS SQL SERVER, #PERFORMANCE TUNING Best practice of creating index for performance tuning SQL Server Best practice of creating index for performance tuning. Create indexes on the frequently used columns in the WHERE clause and the JOIN criteria of a S 22:15 Share
#PERFORMANCE TUNING, #SQL SERVER INTERVIEW QUESTIONS How you will trace all event only from a selected Database or Procedure in SQL Server Profiler Step 1: Open SQL Profile and Click on create New Trace Step 2: Step 3: Step 4: 21:48 Share
#PERFORMANCE TUNING, #SQL SERVER INTERVIEW QUESTIONS What is forwarding pointer in SQL Server? How it is helpful in performance optimization? Forwarding pointer: when you update the row in the heap table, SQL Server tries to accommodate it on the same page. If there is no free space availabl 23:58 Share
#PERFORMANCE TUNING, #SQL SERVER INTERVIEW QUESTIONS Tips for SQL Server Performance optimization by Choosing appropriate data type Best practices for SQL Server data types for performance optimization: You can improve the performance of Sql Server query (make fast) by reducing the 20:37 Share
#PERFORMANCE TUNING, #SQL SERVER INTERVIEW QUESTIONS How Fixed Length and Variable Length Data types affect performance in Sql server Explain with example Sql Sever Performance tuning Interview Question: How Fixed Length and Variable Length Data types affect performance in Sql server Explain with exampl 20:29 1 Share
#PERFORMANCE TUNING, #SQL SERVER INTERVIEW QUESTIONS What is Ghost Cleanup Task in Sql Server? Ans: When you delete a row, SQL Server does not physically remove the row from the page. Rather, it flags deleted rows as ghosted (deleted) in the st 19:52 1 Share
#PERFORMANCE TUNING, #SQL SERVER INTERVIEW QUESTIONS GAM VS SGAM IN SQL SERVER | DIFFERENCE BETWEEN GAM AND SGAM Allocation Maps: SQL Server uses special kind of pages, called Allocation Maps, to track extent(collection of 8 pages known as extent) and page usage 19:47 Share
#DATABASE INTERNAL, #PERFORMANCE TUNING What is Slot Array in Sql Server? How it is related to Database Page? Data page: The space in the database is divided into logical 8KB pages. These pages are continuously numbered starting with zero, and they can be refe 00:03 Share
#PERFORMANCE TUNING, #SQL SERVER INTERVIEW QUESTIONS What are NDF Files in SQL Server? What are NDF Files in SQL Server? Sql Server interview questions Filegroups: All database files are grouped into the filegroups. A filegroup is a logic 23:08 Share
#PERFORMANCE TUNING, #SQL SERVER INTERVIEW QUESTIONS What do you understand by index_id = 0 and Index_id = 1? What they represent? What do you understand by index_id = 0 and Index_id = 1? If we have a query like select top 100 index_id , * from sys . indexes where index_id = 0 Ans: If you h 20:06 Share