Solved

"SortSequence=SharedWeight": in connection string

Posted on 2006-11-14
2
511 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

Suggested Solutions

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…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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