SQL Syntax as below
DELETE V From Table1 V
INNER JOIN Table2 AS A ON A.Col1 = V.Col1 AND A.Col2 = V.Col2
AND A.Col3 = V.Col3 And A.Col4 = V.Col4
AND A.Col5 = V.Col5 AND A.Col6 = V.Col6
Info for Table1:
- Rows: 32,00,000
- NonClust_Index1_Col1
- NonClust_Index2_Col2
- NonClust_Index3_Col3
- NonClust_Index4_Col4
- NonClust_Index5_Col5
- No Cluster index and primary key
Info for Table 2:
Rows: 50,000
NonClust_Index1_Col1_Col2_Col3_Col4_Col5_Col6 (Non Clust Composite index on six column)
Clust_Index2_Col1_Col2_Col3_Col4_Col5_Col6 (Clust Composite index on six column)
Please help me to identify what is the reason of growing TempDB size (>200GB) for this simple delete syntax (Delete syntax is in Transaction Scope)