Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Update statement for multiple table-a query
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 06/06/2010 :  12:17:00  Show Profile  Reply with Quote
Hello everybody!
Can anyone suggest a script for this update statement where I intend to update one
particular col using 30 tables at one go.
update BackupDetails, Material_Master, WB06Material_purchased1011,
WB06Musterrollmaster1011, WB06MustRoll1011,WB06Registration,WB06Work_demand0607,
WBFlood_control,WBMaterial_Master,WBOtherWorks, WBPan_account1011
WBrecieve_pan1011,WBRural_Connectivity,WBWater_conservation, WBWork_detail
set updateflag=NULL where updateflag='Y' or updateflag='y'

I am using sql servr 2k with ems sql manager.
Urgent solution is highly welcome.

Almighty SQL Goddess

38200 Posts

Posted - 06/06/2010 :  12:42:06  Show Profile  Visit tkizer's Homepage  Reply with Quote
You'll need to write 30 update statements.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2019 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000