USE master GO sp_attach_db '$(DBNAME)', 'C:\DataPRO_SQL\$(DBNAME).mdf' GO