Change owner of many MS SQL tables
The internet is really in impressive reference library. I needed to change the ownership of 78 SQL tables. I was not about to click through 78 tables via the enterprise admin GUI to change ownership. I thought about getting a list of the tables and hacking together a SQL script to change the ownership with sp_changeobjectowner. Then I came across this technique the combined sp_changeobjectowner with sp_MSforeachtable.
I found this and several other ways to change owner of many MS SQL tables at:
http://joseblanco.blogspot.com/2004/10/change-owner-of-all-tables-in-sql.html

There are no comments for this entry.
[Add Comment]