Changes the database which specified spid context to the specified database

  • hi,

    I want changes the database which specified spid context to the specified database

    A spid:53, current database :test

    B spid:54, current database :master

    now, i'm B, I want change A current database to master also, what should I do? TSQL.

  • You can't change someone else's database context. Find whoever's running session 53, ask them to change to master.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • THX!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply