1 0

Move SQL database

Detach:

SQL Server Management Studio > Databases > Right click the database > Tasks > Detach > check the box "Drop Connections" > OK

Move database with existing permissions.
cd "C:\Program Files\Microsoft SQL Server\Path\To\MSSQL"
robocopy /sec .\DATA D:\New\Path

Attach:
SQL Server Management Studio > Databases > Attach > Add > Select the .mdf > OK