SQL Interview: 30 Temporary stored procedures in SQL Server
This is a post in the SQL Interview series. These aren’t trick or gotcha questions, they’re just questions designed to scope out a candidate’s knowledge around SQL Server and Azure SQL Database.
Section: Administration Level: Advanced
Question:
Your session is connected to a database named PublicWorks.
You want to create a temporary stored procedure, that only lasts until your session has ended. It should be available to all other sessions while your session is still active.
2025-03-23