Using sp_tempdb

sp_tempdb allows users to:

The syntax for sp_tempdb is:

sp_tempdb [
    [ { create | drop } , groupname ] | 
    [ { add | remove } , tempdbname, groupname ] | 
    [ { bind, objtype, objname, bindtype, bindobj [, scope, hardness ] } | 
      { unbind, objtype, objname [, scope ] } ] | 
    [ unbindall_db, tempdbname ] | 
    [ show [, "all" | "gr" | "db" | "login" | "app" [, name ] ] | 
    [ who, dbname ] 
    [ help ] 
]

For detailed parameter and usage information, see Reference Manual: Stored Procedures.