Oggi mi è stato chiesto di spostare i database di MOSS 2007 da un SQL Server ad un altro (utile anche per il semplice cambio di istanza).
Spostamento globale di tutti i DB (compreso il DB di configurazione della Farm)
L'operazione formalmente ufficale è eseguibile attraverso i tool di backup/restore della Central Administration.
Su questo blog è possibile trovare le isctruzioni passo-passo, corredate da screenshots.
Spostamento dei soli DB di contenuto
Un'alternativa, che ho seguito alcune volte, è quella di reinstallare una nuova farm (a volte operazione utile a sistemare anche altri aspetti), e quindi un nuovo SharePoint_Config DB, ed infine effettuare il solo spostamento dei Content DB.
Ecco la procedura:
1) Find the content Database
These are listed under Central Admin->Application Management->Site Collection List
2) Backup the content database
You could alternatively detach it, and copy it. Just doing a backup in SQL Server 2005 Management studio is easier.
3) Restore content database to new server
Copy the BAK file to new server. Create an empty DB in Management Studio, restore from backup, you may need to change an option in the "options" tab of the restore dialog to get it to work. (Overwrite db).
4) Create Web App on new Server
Central Admin->Application Management->Create or extend Web App->Create New Web App.
5) Associate restored DB with new Web App
Central Admin->Application Management->
SharePoint Web Application Management->Content Databases->
Remove Content Database from your new web app.
Now use STSADM to add restored DB to this web app
c:\program files\common files\microsoft shared\web server extentions\12\bin on new server is where you can find the STSADM.
run this command from there.
stsadm -o addcontentdb -url http://yourwebapp:port -databasename yourcontentdb -databaseserver yoursqlserver
6) Run ISSRESET from command prompt.
Spostamento dei DB da SQL Server Express Edition ad un normale SQL Server (Standard/Enterprise)
Ecco il link all'articolo di KB.