|
SQL Database Sort Order
Put together in HTML as part of Richards Techy Pages There are 2 sort orders the SQL database can have that Dynamics will work with. These are Binary (50) and Dictionary order case insensitive (52) which is the default. The sort order of SQL 7 can be checked by looking at the master database with the query: "Select value from sysconfigures where comment = 'default sortorder ID' ". The query will return a number which will need to be 50 or 52 for Dynamics. The sort order of the database needs to be the same sort order of the data being restored. Historically we have used binary as training on version 3.15 Dynamics C/S + indicated Binary sort order to be 20% faster than the default (52). If using SQL 8 (2000) the overriding sortorder constraints are the same. Refer the SQL 8 installation guide for further details. Changing the Sort Order If the sort order is incorrect I will get an error about wrong Unicode Locale when I try to restore a database. To change the sort order I use the following steps to rebuild the master database with the wanted sort order.
Back Revised 4th October 2002 |