字体:大 中 小
护眼
关灯
上一章
目录
下一章
第240章前往星门宗 (19 / 20)
from ' + quotename(@dbname) + '.sys.types as t
join ' + quotename(@dbname) + '.sys.schemas as sch on sch.schema_id = t.schema_id
where t.name = #t2.object_name collate database_default
and sch.name = #t2.relative_schema collate database_default
and #t2.object_type = ' + CAST(@type AS nvarchar(8)) + ' and #t2.object_schema IS NULL
and (#t2.object_db IS NULL or #t2.object_db = '' + @dbname + '')
and #t2.rank = (' + CAST(@iter_no AS nvarchar(8)) + '+1) and #t2.object_id IS NULL and #t2.object_svr IS NULL'
EXEC (@query)
-- @xml
SET @query = 'update #t2 set object_db = N' + quotename(@dbname, '') + ', object_id = x.xml_collection_id, object_schema = SCHEMA_NAME(x.schema_id)
from ' + quotename(@dbname) + '.sys.xml_schema_collections as x
join ' + quotename(@dbname) + '.sys.schemas as sch on sch.schema_id = x.schema_id
where x.name = #t2.object_name collate database_default
The content is not finished, continue reading on the next page
更多完整内容阅读登陆
《墨缘文学网,https://wap.mywenxue.org》
上一章
目录
下一章