Solved

"SortSequence=SharedWeight": in connection string

Posted on 2006-11-14
2
501 Views
Last Modified: 2006-11-18
--------------------------------------------------------------------------------

was looking at the code this ex-developer wrote and he has this in his connection string:

SortSequence=SharedWeight;SortLanguageId=ENU

That makes upper case and lowercase characters sort the same..http://www.redbooks.ibm.com/redbooks/pdfs/sg246440.pdf


is that a good idea to specify that? (sql server doesnt have that connection values)
0
Comment
Question by:Camillia
2 Comments
 
LVL 37

Expert Comment

by:momi_sabag
ID: 17941275
hi

i guess the answer should be it depends,
maybe the database contains data that is comming from 2 different systems,
one that uses lowercase and the other uppercase, but the database is not case sensitive
in this case , this would make sense

in order cases, it won't
it all depends on your application
0
 
LVL 45

Accepted Solution

by:
Kdo earned 500 total points
ID: 17941405

>>is that a good idea to specify that?

It depends on what you're trying to do.

A lot of modern utilities disregard case when sorting.  It's a lot easier to hunt through a list when case isn't an issue.

Consider sorting file names where any letter could be a capital letter.

file1
File1
fIle1
FIle1
fiLe1
FiLe1
...

Are all unique names.  if the list of file is significant you'll have to search at least two places (those names starting with 'F' and those starting with 'f') to see all of the files.  If the list is really long you may have to search may places in the list.

And it makes comparison easy, too.

SELECT * FROM [table] WHERE last_name = 'Smith';

Capitalization no longer matters as the collation sequence resolves it.  'Smith' = 'smiTH', etc.


Good Luck,
Kent
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DB2 join tables across schemas 5 537
Another SQL with parm Part 2 44 90
filter only by one character 4 43
Modify select statment 10 31
November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question