ChangeDatabaseInstance("<DBServerName>") not working
When I am executing the below PS script it's throwing the update conflict error :
$db = get-spdatabase -identity
$db.ChangeDatabaseInstance("")
$db.Update()
Update error:
An update conflict has occurred, and you must re-try this action. The object SPServer Name=SQLSERVERAG was updated by domain\userid123 in the w3wp (14568) process
What could be the possible reason I could look into.