Read in Books On Line:
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/29ddac46-7a0f-4151-bd94-75c1908c89f8.htm
Or using SSMS right click on Databases, in the next menu click on ATTACH complete the information requested in the next displayed window