To change the password , you can do the following:
ALTER USER
WITH password="".
Or use SQL Management Studio to select the user you want to change, click Properties, and change the password by the form.
To change the location datafile :
1) Check where the datafile you want is located.
2)StoptheSQLServerservice.ItisveryimportantthatSQLServerisstoppedsoasnottocorruptyourdata.BySQLManagementStudioyoucandowiththesauser.
DonotconfusewiththedefaultSQLfolderwiththelocationwherethedatafilesareeffectively.ThepathdescribedbelowisthedefaultpathwhereSQLServerwillcreatethedatabaseifyoudonotspecifythelocation.
3)Copythedatafile(s)thatwillbemovedtothenewplace.Choosetocopyratherthanmove,forsafety.Oncemigratedyoucandelete.
4)StartSQLServer.
5)Putyourdatabaseasoffline.
6)DetachtheSQLServerdatabase.
7)AttachthedatabasetoSQLServer
8)ClicktheaddbuttonandselecttheMDFfileforyourdatafile.It'sveryimportantthatthenewdatafilelocationhasprivilegessoyoucandothis.
9)CheckinthedatabasepropertyiftheDatafileiscorrect.
Study Indication
If you want to take more advantage of the study and at each step before clicking the OK button, click the Script button on the taskbar, the command that will be executed with the OK button will be displayed to you, script for the next migration.