Exec sp_attach_db @dbname = 'bbb', @ filename1 = 'd: /serversql/mssql/data/per.mdf', @ filename2 = 'd: /serversql/mssql/data/per.ldf'