Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Delete query running longer

$
0
0

Hi,

I have two tables A(110 columns) and B(1 column). Table A is having55 Million records and B is having 0.3 Million records. I am deleting records from A by joining with B like below.

DELETE
FROM A
INNER JOIN B
ON A.ID = B.ID

In both the tables ID have Clustered Indexes. I am using this query in Execute sql task in SSIS.

The above query running longer (15 min). I want to optimize this. Can you guys help me in this.

Thanks in advance,

Gangadhar


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>