How to Move Your Database File to Another Location
To move your database file to another location on the same computer for space
or other organizational reasons please follow this documentation from
It will assist you in moving your database and the right commands to be
executed in Management studio.