Solved

"SortSequence=SharedWeight": in connection string

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

635 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