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

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 update 2 tables in one queries

Author  Topic 

nicnic
Starting Member

2 Posts

Posted - 2004-09-30 : 21:54:06
Anyone know how to update 2 tables in one query. This 2 tables is link up with a primary key.

mk_garg20
Constraint Violating Yak Guru

343 Posts

Posted - 2004-09-30 : 22:13:46
I think you can not update two tables in one query.
write a stored procedure that updates both tables.





mk_garg
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-09-30 : 22:32:13
Is this a homework or interview question?

Tara
Go to Top of Page

nicnic
Starting Member

2 Posts

Posted - 2004-10-01 : 05:11:01
is interview question. i dun think it can also.
Go to Top of Page

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2004-10-01 : 08:51:47
Primary key...cascade update (in sql2000) on change of key value???
Go to Top of Page
   

- Advertisement -