By default, Windows SharePoint Services uses one database for configuration and another database for content. By default, the MSDE databases are located on the hard disk drive where Microsoft Windows is installed. The hard disk drive where Windows is installed is typically drive C. To move the MSDE databases to a different folder on you Windows SharePoint Services server, follow these steps:
Locate the two MSDE database files STS_Config.mdf and STS_ServerName_1.mdf, where ServerName is the name of your server that is hosting the content database. By default, these files are located in the following folder:
Click Start, click Run, type cmd, and then press ENTER.
Start the Osql.exe tool. To do this, type osql -E -S ServerName\InstanceName at the command prompt, where ServerName is the name of the server where the MSDE database files are located, and where InstanceName is the name of the instance of MSDE, and then press ENTER.
Note By default, the instance name is sharepoint.
At the osql command prompt, back up the existing configuration and content databases. To do this, type the following at the osql command prompt
BACKUP DATABASE sharepoint TO DISK = 'PathName'
where sharepoint is the name of the MSDE database, and where PathName is the path and file name that you want, such as C:\MSDE\Backup\sharepoint.bak.
Type GO, and then press ENTER.
Repeat steps 4 and 5 for each database.
Detach the configuration database. To do this, type EXEC sp_detach_db 'Configurationdb' at the command prompt, where Configurationdb is the name of the MSDE configuration database, and then press ENTER. For example, type EXEC sp_detach_db ‘STS_Config’, and then press ENTER.
Detach the content database. To do this, type EXEC sp_detach_db “Contentdb” at the command prompt, where Contentdb is the name of the MSDE content database, and then press ENTER. For example, type EXEC sp_detach_db ‘STS_ServerName_1', and then press ENTER.
Note If you receive a message that the database is in use and cannot be detached, start a new command prompt. At the new command prompt, type the following, and then press ENTER after each line:
net pause mssql$sharepoint
net continue mssql$sharepoint
Start another command prompt, or start Microsoft Windows Explorer, and then copy both of the MSDE database files that you located in step 1 to the new folder that you want.
Attach the configuration database. To do this, type the following at the command prompt where the Osql.exe tool is running
For more information about how to perform backup and restore operations in Windows SharePoint Services, click the following article number to view the article in the Microsoft Knowledge Base:
833797
(http://support.microsoft.com/kb/833797/
)
How to back up and restore installations of Windows SharePoint Services that use Microsoft SQL Server 2000 Desktop Engine (Windows)