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
 Transact-SQL (2000)
 database update

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-04-20 : 10:04:21
sagi writes "I have a table called itemmaster in my database, I generated a Itemcode for each row, this value is used in somany tables in my database

now the question is if I generated new itemcode so how to update the database so that all the tables that contain old itemcode will be updated to new itemcode


Thanks
sagi"

X002548
Not Just a Number

15586 Posts

Posted - 2004-04-20 : 12:38:26
Look up Cascade in BOL

Ahhh..surrogate keys...



Brett

8-)
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-04-20 : 12:53:35
You could also use a trigger for this.

Tara
Go to Top of Page
   

- Advertisement -