EXEC sp_attach_single_file_db @dbname = 'AdventureWorksDW2012_Data',@physname = 'D:Program Files (x86)Microsoft SQL ServerMSSQL11.MSSQLSERVERMSSQLDATAAdventureWorksDW2012_Data.mdf'