Microsoft
Software
Hardware
Network
Question : Updating Multiple rows
I want update 12 carore records. I want to update from record 1 to 5000, then from 5001 to 10000, then from 10001 to 15000 and so on. How to do it in a loop. Query is here but it always update first 5000. How to update next 5000 record from 50001 to 10,000 and then from 10,001 to 15000.
SET ROWCOUNT 5000
WHILE (1=1) BEGIN
BEGIN TRANSACTION
update newformularydtl
set newformularydtl.ddid=b.ddi
d from newformularydtl a,Medispan.dbo.mmw_drug_pa
ck b
where a.ProductID=b.ppid
IF @@ROWCOUNT = 0
BEGIN
COMMIT TRANSACTION
BREAK
END
COMMIT TRANSACTION
END
Answer : Updating Multiple rows
where a.ProductID=b.ppid
and a.ddid <> b.ddid
Posted via EE Mobile
Random Solutions
Exchange 2010 Send-As permissions do not stay applied
How do I use a static page for Joomla's Home Page?
perl OpenOffice::OODoc need to get and add tekst into a given frame
Routing Issues
I need a website done for my company
Move Mailbox Powershell Script (sending Welcome e-mail HTML format)
KMS Activation Multiple Keys
VBscript Help for a Newbie trying to pull AD Computer Info into Excel 2007
Opera 10.x how to find each tab's memory consumption
vb script to ping hosts and check operating system