字体:大 中 小
护眼
关灯
上一章
目录
下一章
第240章前往星门宗 (16 / 20)
where t.name = #t2.object_name collate database_default
and SCHEMA_NAME(t.schema_id) = 'dbo'
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
where x.name = #t2.object_name collate database_default
and SCHEMA_NAME(x.schema_id) = 'dbo'
and #t2.object_type = ' + CAST(@xml AS nvarchar(8)) + ' and #t2.object_schema IS NULL
and (#t2.object_db IS NULL or #t2.object_db = '' + @dbname + '')
The content is not finished, continue reading on the next page
更多完整内容阅读登陆
《墨缘文学网,https://wap.mywenxue.org》
上一章
目录
下一章