Here is a quick and easy way to alter the schema of any of the objects in your sql server that has been created with any other user than the dbo. This has been giving me troubles when using TSQL and has been difficult to change it using the sql managment studio.
SELECT 'ALTER SCHEMA dbo TRANSFER ' + SCHEMA_NAME(schema_id) + '.' + name FROM sys.tables WHERE schema_id != SCHEMA_ID('dbo');
Yes, that’s it! It worked properly for me. Great!
Hi my friend! I wish to say that this post is amazing, nice written and include approximately all significant infos. I would like to see extra posts like this.