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