I have followed this thread by alter schema and transfer user and then drop the schema username but it still shows the same error. I also saw this thread in Stackoverflow but the solution there isn't very useful. I ran the sql statement below and it does result in some objects but not the one that's showing in the error.
SELECT OBJECT_NAME(ac.object_id) FROM sys.all_columns ac WHERE name = 'schema_id'
I came across this thread and ran their sql statement below but there is no result showing.
SELECT 'ALTER SCHEMA dbo TRANSFER [' + SysSchemas.Name + '].[' + DbObjects.Name + '];'
FROM sys.Objects DbObjects
INNER JOIN sys.Schemas SysSchemas ON DbObjects.schema_id = SysSchemas.schema_id
WHERE SysSchemas.Name = 'upstreamgasmgmt'
AND (DbObjects.Type IN ('U', 'P', 'V'))
So, I'm hoping someone can give me additional pointers. Thanks!