how to check if temp table exist in delete code example
Example 1: Check if a temporary table exists and delete if it exists
DROP TABLE IF EXISTS #lu_sensor_name_19
CREATE TABLE #lu_sensor_name_19...
Example 2: Check if a temporary table exists and delete if it exists
IF OBJECT_ID('tempdb..#lu_sensor_name_19') IS NOT NULL
BEGIN
DROP TABLE #lu_sensor_name_19
END
CREATE TABLE #lu_sensor_name_19...