字体:大 中 小
护眼
关灯
上一章
目录
下一章
第240章前往星门宗 (17 / 20)
and #t2.rank = (' + CAST(@iter_no AS nvarchar(8)) + '+1) and #t2.object_id IS NULL and #t2.object_svr IS NULL'
EXEC (@query)
-- consider schema as t.relative_schema
-- the parent object will have the default schema of user in case of dynamic schema binding
-- @obj
SET @query = 'update #t2 set object_db = N' + quotename(@dbname, '') + ', object_id = obj.object_id, object_schema = SCHEMA_NAME(obj.schema_id), object_type =
case when obj.type = 'U' then ' + CAST(@u AS nvarchar(8)) +
' when obj.type = 'V' then ' + CAST(@v AS nvarchar(8)) +
' when obj.type = 'TR' then ' + CAST(@tr AS nvarchar(8)) +
' when obj.type in ( 'P', 'RF', 'PC' ) then ' + CAST(@sp AS nvarchar(8)) +
' when obj.type in ( 'AF' ) then ' + CAST(@uda AS nvarchar(8)) +
' when obj.type in ( 'TF', 'FN', 'IF', 'FS', 'FT' ) then ' + CAST(@udf AS nvarchar(8)) +
' when obj.type = 'D' then ' + CAST(@def AS nvarchar(8)) +
The content is not finished, continue reading on the next page
更多完整内容阅读登陆
《墨缘文学网,https://wap.mywenxue.org》
上一章
目录
下一章