0
是否有更好的方法來刪除臨時表Azure SQL?刪除臨時表(如果它存在於SQL Azure上)
BEGIN TRY
DROP TABLE #customMap
END TRY
BEGIN CATCH
END CATCH
也許不需要在Azure SQL上刪除臨時表,因爲會話結束時會刪除表。
這
if (OBJECT_ID('#candidates')) is not null
begin
drop table #candidates;
end;
或本
if (OBJECT_ID('tempdb..#candidates')) is not null
begin
drop table #candidates;
end;
不起作用。
我得到'消息3701,級別11,狀態5,2號線 無法刪除表 'yarpas',因爲它不存在或者您沒有權限。' – Fosna
不適用於Azure SQL數據庫。 – Fosna