Avatar of centem
centem
Flag for United States of America asked on

Update Sql Server tables with Foreign Key constraints

Greetings, I need to update multiple tables where userid = bob to userid = bob.smith.
But I'm getting foreign key constraint errors. How can I fix the DB so I can fix this so I can update all dependant tables. Thank you.
Microsoft SQL Server 2005Microsoft SQL Server

Avatar of undefined
Last Comment
centem

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Imran Javed Zia

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Guy Hengel [angelIII / a3]

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
centem

ASKER
IJZ, thanks that worked. How do I return the constraints so that nothing breaks.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes