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

Consuming more time while executing Update Statement

$
0
0

Hi all

When i am executing one  update query it is taking much time to execute and after 40 minutes also no progress in Execution. Below is the Query: 

" update 'tablename' set enddate = '2014-12-31 00:00:00' where CatId=32 and SubcatId=104 and enddate <>'2014-12-31 00:00:00'  "

*** But when i replace the SubcatId number to 107 the query is executing. CatId & SubcatId are column names  in a table.

Please can anyone help me in this issues as it is very urgent. There are no duplicates in the table.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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