0
我有一個存儲過程,其中多次創建一些全局表(從##
開始)。我想列出表名稱。例如 -從sql腳本查找全局臨時表名
create table ##customer
(
Customerid bigint
)
if(OBJECT_ID('tempdb..##Department')) is null
begin
create table ##Department
(
Departmentid bigint
)
end
SELECT * FROM ##customer
我想列出臨時表名稱,它們被創建並用作選擇查詢。請幫忙。使用SQL查詢的第一優先級。如果你不知道sql,那麼使用C#。我將把存儲過程內容傳遞給C#方法。