Archive
Archive for February, 2012
Replication performance tuning
2012/02/23
Leave a comment
http://technet.microsoft.com/en-us/library/cc966539.aspx
http://searchsqlserver.techtarget.com/tip/15-SQL-Server-replication-tips-in-15-minutes
http://www.sql-server-performance.com/2005/replication-tuning/
Categories: Common
Master rebuild and change check list
2012/02/23
Leave a comment
Master DB rebuild and change check list
- backup login script http://support.microsoft.com/kb/918992
- backup linked server script
- Detach databases.
- Master rebuild whatever option
- create another instance and attach : make sure same file location of system DBs, msdb, master, tempdb(you can fix it later).
- single mode rebuild : http://blogs.msdn.com/b/psssql/archive/2008/08/29/how-to-rebuild-system-databases-in-sql-server-2008.aspx
- When you rebuild or attach master DB, you should know about sa password from original instance.
- SQL service pack update if different version.
- Attach databases
- If you move master database from other service, you should drop unnecessary databases.
- run #1 login script only for necessary account(s).
- change sa password if you want
- change master key with force option
http://simonsql.com/2012/02/23/an-error-occurred-during-decryption/
ALTER SERVICE MASTER KEY FORCE REGENERATE
- change server name
http://msdn.microsoft.com/en-us/library/ms143799.aspxuse master declare @srvname varchar(255), @new_srvname varchar(255) set @srvname = @@servername set @new_srvname = 'new hostname' --your computer hostname exec sp_dropserver @srvname exec sp_addserver @new_srvname, local go
- change server option if you want to change : sp_configure
- min max memory
- ad hoc query
- e.t.c.
Categories: Common
An error occurred during decryption
2012/02/23
1 comment
I guess, you had a problem on Master database.
After changed you got linked server error like this.
“An error occurred during decryption.”
The reason why login mapping password can decrypt due to master key changed.
So, you need to generate again master key with force option.
http://support.microsoft.com/kb/914261
ALTER SERVICE MASTER KEY FORCE REGENERATE
Categories: Common