use mastergosp_detach_db 'mydb'go
mydbdata.mdf
mydbdata_log.ldf
use mastergosp_attach_db 'mydb', 'E:\DBData\mydbadata.mdf', 'E:\DBData\mydbdata_log.ldf'go