SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

sm-sql
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,
WB06Work_demand1011,WB1011SummaryMust,WBDrought_Proofing,WBexp_amount1011
WBFlood_control,WBMaterial_Master,WBOtherWorks, WBPan_account1011
WBPan_trans1011,WBRC_Stretch_details,WBrecieve_blk1011,WBimpl_account1011
WBrecieve_pan1011,WBRural_Connectivity,WBWater_conservation, WBWork_detail
WBWork_Material,WBWork_Sanction,work_category,work_present_status,
work_proposed_status,work_status,Work_type,wrk_act_master
set updateflag=NULL where updateflag='Y' or updateflag='y'

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

tkizer
Almighty SQL Goddess

USA
37466 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
http://weblogs.sqlteam.com/tarad/

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