I first use sp_detach_db database and use Create Database MyDB on Primary (filename = "d: /../../ DATA / MYDB.MDF") for Attach's specific code in the application?