It is easy enough to detach and reattach databases in SQL 2000 providing you have less than 16 files to attach.
I manage some very large databases and these sometimes need to be detached and reattached (i.e. for moving a database file from one volume to another).
I have more than 16 files to contend with on these monsters. Since I hate repetitive typing, I use this script to generate the CREATE DATABASE FOR ATTACH statements for all our databases.
To use it, run it then take the results and run the results. Repeat with those results. The last set of results are the Create Database For Attach statements.
It is good for any number of files.
SP that shows information from a given database
It is used to show information from a database. It shows the creation date, it calculates the time in days, months and hours since its creation and it shows all the users with rights in that database.