• Local temporary tables are visible only to the creating session but global temporary tables are visible to all sessions.

    To create a global temporary table, prefix the table name with two number signs such as

    Create table ##table_name

    You need to be carefull with the life span of Global temporary tables, as they are automatically dropped when the session that created the table ends AND every other connection stops its reference.

    This might be easier just to create a permanent table in tempdb and then drop it at the end of the process.

    SQL = Scarcely Qualifies as a Language