move SQL

How to move AMS or its SQL databases to another machine.