You just screwed up the database, and now you need to make some surgical repairs to the database.
Or maybe you have data in development and production tables and you want to move some data changes from one to the other.
Basically the problem is that you have 2 tables with the same schema where 1 column has some different values in one table when compared with the other.
You can't do an update on an inner join statement, but you can create an updatable view containing the fields you need and then run an update statement on it.
A view is updatable if it meets the following conditions:
A view is updatable if:
CREATE VIEW NoTable AS SELECT GETDATE() AS CurrentDate, @@LANGUAGE AS CurrentLanguage, CURRENT_USER AS CurrentUser
Remember Me
Powered by: newtelligence dasBlog 1.9.6264.0
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
E-mail
Theme design by Jelle Druyts