What’s the difference between a local temp table and a global temp table?

Technology CommunityCategory: SQLWhat’s the difference between a local temp table and a global temp table?
VietMX Staff asked 3 years ago
  • Local tables are accessible to a current user connected to the server. These tables disappear once the user has disconnected from the server.
  • Global temp tables, on the other hand, are available to all users regardless of the connection. These tables stay active until all the global connections are closed.