Error while renaming Database.

  • Hi All,

    When i'm trying to rename a database using sp_renamedb  Im getting the below mentioned error. (5030 is the error number in Books Online). Can any one please tell the reason and how to solve this.

    "The database could not be exclusively locked to perform the operation."

    Thanks,

    Subhash

  • You probably have one or more users in the database.

    Make sure that noone is using the database, then try again.

    sp_who2 is an easy way to see in which db's users currently are. (including yourself )

    /Kenneth

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

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