Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

update performance

$
0
0

i am trying to update 300, 000 records using a join and a condition, it takes around 11 min, the time is too lons, i want it to be in seconds,

the schema of two tbles is given below:

pat   hospid  pattype   patno hospid pattye

1    12        I                      1         12       null

2     12       I                        1         12       null

there is a clustered index on both the tables on patno, hospid, i am trying to make the patye of the second tale to that of dirst table based on certain criterion on other cokumns  in the first table that are not shown above, please advice

thanks for any help

nik


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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