Solved

"SortSequence=SharedWeight": in connection string

Posted on 2006-11-14
2
506 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:
Kent Olsen 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
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…

763 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