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."