Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
ALTER DATABASE hr_live MODIFY NAME = hr_test

error message :- The database could not be exclusively locked to perform the operation.


what i do for changing my database name
Posted

 
Share this answer
 
see this command
sp_renamedb 'tt','LRMS'
here u can change database name but before that u should have necessory permissions for that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900