This post is provided as is without warranty and confers no rights. These steps assume you have not made any major/custom changes to the sharepoint configuration. Always make sure you have a backup before making major changes to a server.
Before trying any of these steps try restarting the windows internal database and performing an iisreset first.
Delete the sharepoint central administration from IIS.
Run the SharePoint Products and Technologies Configuration Wizard
Remove the newly created sharepoint database in central administration (ShareWebDb)
Detach the Sharepoint database from SQL mangement studio (ShareWebDb)
Attach the Sharepoint database in SQL management studio (ShareWebDb) from the other location if you moved the database.
Add the old sharepoint database from sharepoint central administration (ShareWebDb)
“C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN\stsadm.exe” -o addcontentdb -url http://server/ -databasename ShareWebDb
Data for companyweb is stored here by default:
C:\Windows\SYSMSI\SSEE\MSSQL.2005\MSSQL\DATA\ShareWebDb.mdf
Transaction Log:
C:\Windows\SYSMSI\SSEE\MSSQL.2005\MSSQL\DATA\ShareWebDb_log.ldf
Restart Windows internal database
Restart iis by iisreset command.
After you complete this process you may need to perform the following in an administrative command prompt:
“C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\BIN\psconfig” -cmd upgrade -inplace b2b -force
You may also want to rename the site in IIS to SBS Sharepoint.
Microsoft KB article on this issue.