SQLserver sp_attach_db procedure

Does anyone know how to run the "sp_attach_db" procedure after the migration of SQL to the secondary host ?

Thanks a lot,

Jaime Cogua