Hi Jean:
Can you tell me what your knowledge level is of SQL2K? Please make sure you make a copy of your complete database before you do *anything*!
To create a copy of your database, take the following steps (I'm assuming you know SQL2K Enterprise Manager...if you don't I really wouldn't recommend running the below stored procedure).
1. Click Start->Programs->SQL Server 2000 -> Enterprise Manager (EM)
2. Once EM is running, click on the 'tree control' on the left side, and drill down to Databases->'Your DNN Database'.
3. Right click on 'Your DNN Database' (whatever name you gave it).
4. Select All Tasks -> Detach Database
5. Step through the wizard and follow the instructions. If there are users, I would log them out w/o a reply (the reply can take up to 20 minutes or so...so if this is a live site I would perform this task late at night or when the site is slow).
6. Your database is now detached and you can copy the actual files to have a true copy of the database.
7. Find out where SQL Server is storing the data. The default is something like C:\Program Files\Microsoft SQL Server\8.0\SQL Data\ MSSQL\Data\ (I put my data in a different folder than the default, so there might not be a 'SQL Data' folder)
8. find the .mdf and one or more .ldf files that are named with your database name and copy them to another folder.
Now, one you have a copy of the database, you can reattach it and do whatever damage you want to it, knowing you have an exact copy which you can reattach if things get screwed up.
To re-attach a database do the following:
Repeat steps 1-2 above
3. Right click on the 'Databases' tree node
4. Select All Tasks -> Attach Database
5. Follow the wizard instructions. The two important things to know here are that you know where the .mdf file is (which of course you have to know if you want to detach it and copy it!), and that you select the same db owner that you had before (this is not a critical thing, but helpful. Just look in your web.config file and use whatever is *that* username as the db owner in the attach database wizard and you'll be good to go)
Unfortunately, I can't help you w/that stored proc, and I'm not sure if you are trying to make a backup or restore a previous backup. Either way, even if you do not have access to EM, just tell your ISP to do the above, zip the copied mdf and ldf files up and put them in a folder on your site so you have this complete copy.
Hope this helps a little bit.
Posted By joannew on 13 Feb 2007 9:31 AM
Hi,
I've just tried the same procedures with another ddn website and when I try to run the EXEC sp_ABRestoreDb command i get the following error:
Server: Msg 3205, Level 16, State 2, Line 1
Too many backup devices specified for backup or restore; only 64 are allowed.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE FILELIST is terminating abnormally.
Server: Msg 50000, Level 16, State 1, Procedure sp_ABRestoreDb, Line 457
Couldn't restore database A3250233 from file C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\A3250233.bak since the number/type of logical devices do not match.
I've tried the whole process a few times and just keep getting stuck at this point.
I'm running SQL Server 2000 on Windows Server 2003.
Have you come across this before?
thanks alot, J