The owner of the modified table in the SQL Server database
- A single modify owner sql statement is as follows:
Query Analyzer Input: EXEC sp_changeobjectowner 'user.table', 'dbo'
user.table means: owner. table name, such as oblog.oblog_user, the previous statement means to change the owner of the table table from user to dbo
- The bulk modification owner statement is as follows:
Query Analyzer Input: exec sp_msforeachtable 'sp_changeobjectowner ? , dbo
You can replace all owners of the face table with dbo