##TEMP
is a global temporary table, #TEMP
is local.
Local temporary tables are visible only to their creators during the same connection to an instance of SQL Server, as during the first creation or link of tables. Local temporary tables are deleted after a user disconnects from an instance of SQL Server.
Global temporary tables are visible to any user and any connection after they are created and are deleted when all users that refer to the table are disconnected from the instance of SQL Server.
see documentation .
Actually, there is almost the same question with the answer - Local and global temporary tables in SQL Server .
source share