CREATE DATABASE your_database_nameON PRIMARY (FILENAME = 'C:\dat.mdf')FOR ATTACHGOdrop database your_database_nameGO