I am running an update query.
It is taking long time. To find the estimated completion time i checked sys.dm_exec_request or sys.dm_exec_session or sp_who2 but there is no clue. It is showing as zero.
can any one help on this please.
Post the query, please. There's a typcial problem that many folks write into their update queries without knowing about it. To summarize the problem, if the UPDATE contains a JOIN, the target table MUST absolutely appear in the FROM clause. Using tablename.columnname is NOT sufficient and that form of UPDATE never appears in Books Online.
is pronounced ree-bar and is a Modenism for R
First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Helpful Links:
How to post code problemsHow to post performance problemsForum FAQs