(Cluster Edition) Places a local system temporary database in the drop state.
sp_tempdb_markdrop database_name [, {'mark' | 'unmark'}]
sp_tempdb_markdrop 'old_cluster_tempdb1', 'mark'
sp_tempdb_markdrop 'old_cluster_tempdb1, 'unmark'
Use sp_tempdb_markdrop to place the local system temporary database in the drop state.
Shut down and restart the instance that owns the last local temporary database.
Use drop database to delete the last local system temporary database.
The permission checks for sp_tempdb_markup differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with the own database privilegeon the specified database or the manage cluster privilege. |
Disabled | With granular permissions disabled, you must be the database owner or a user with sa_role. |