The stored procs and functions are held in the database so will be there when you attach the datafiles. When looking at Management Studio they are in the programmability group under the database.
The fulltext indexes/catalogues will have to be rebuilt.