今後 Azure 化を進めるにあたって、データベースをインストールする際の照合順序 (master, msdb の照合順序)は SQL_LATIN1_GENERAL_CP1_CI_AS にしておくと今後の移行がスムースに進むという話がある。 http://d.hatena.ne.jp/odashinsuke/20101101/1288611604
それとは別に、今回照合順序に Japanese_90_BIN2 を指定してインストールしたマシンに SQL Server 2008 SP2 を適用しようとしたところ以下のようなトラブルが発生した。似たような事例は過去にも体験したことがあり、特に CI (case sensitive) をシステムが利用するデータベースに指定しておかないといけない。バイナリ照合順序を使うときは、自分が把握している範囲内でのみ利用しよう。
2011-05-10 22:40:50.26 spid7s Creating procedure sp_sqlagent_get_perf_counters…
2011-05-10 22:40:50.27 spid7s エラー: 468、重大度: 16、状態: 9。
2011-05-10 22:40:50.27 spid7s equal to 操作の “Japanese_CI_AS” と “Japanese_90_BIN2” 間での照合順序の競合を解決できません。
2011-05-10 22:40:50.27 spid7s エラー: 912、重大度: 21、状態: 2。
2011-05-10 22:40:50.27 spid7s Script level upgrade for database ‘master’ failed because upgrade step ‘sqlagent100_msdb_upgrade.sql’ encountered error 200, state 7, severity 25. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the ‘master’ database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion.
2011-05-10 22:40:50.27 spid7s エラー: 3417、重大度: 21、状態: 3。
2011-05-10 22:40:50.27 spid7s Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.
2011-05-10 22:40:50.27 spid7s SQL Trace was stopped due to server shutdown. Trace ID = ‘1’. This is an informational message only; no user action is required.