... with case insensitivity being default for strings...
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
SQL Server collations
Collapse
X
-
-
are you mad because the collation is case insensitive?
Thats considered normal practiceCoffee's for closers -
Originally posted by Spacecadet View Postare you mad because the collation is case insensitive?
I should have paid more attention to default collations - using case insensitive is nuts.Comment
-
Originally posted by AtW View PostYes.
using case insensitive is nuts.
Only reason i can think of is if you are deploying it somewhere else that IS case sensitive. Having something where ID, Id and id are different things is just horrible.Last edited by Durbs; 2 February 2010, 21:44.Comment
-
Ugh, Latin1_general_bin is the bane of my part time work at the moment!
Why would anyone want A to come after b!
If you need it for one particular field use the collate clause ie select textfield1 collate latin1_general_bin from blah
Why doom the whole database to be bin!
I doubt you'd have much of a case for performance gains these days either so don't try that one.Comment
-
If you don't want case sensitive query you can use lower() or (if you are concerned about performance) lower case data before inserting it into database, or have another lower cased field if you need both.
Anyway bug is fixed and lesson learnt: I was going to yank SQL Server out of the window soon, and now that's going to happen a lot soonerComment
-
Originally posted by AtW View PostYes.
I should have paid more attention to default collations - using case insensitive is nuts.
In EVERY system I've worked on having a case sensitive database would have been a nightmareCoffee's for closersComment
-
Originally posted by Spacecadet View PostWhy do you want case sensitivity?
Originally posted by Spacecadet View PostIn EVERY system I've worked on having a case sensitive database would have been a nightmareComment
-
Originally posted by AtW View Postdefaults in my view should not have such sneaky side effects: this effectively forces to use explicit collation in SQL, leading to dirty code.
Default collation is set at instance level and can easily be determined during install.
If it's that important then fire your DBA and get someone who knows what they're doing in!Coffee's for closersComment
-
Originally posted by Spacecadet View PostDefault collation is set at instance level and can easily be determined during install.
I'd gladly follow your advice and fire our DBA but that would be like firing myself...Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Comment