Re: Case Senstivity on SQL Server

From: Steve Kass (skass_at_drew.edu)
Date: 05/14/04


Date: Fri, 14 May 2004 16:26:01 -0400

Matt,

  You will be much better off correcting the uppercase/lowercase
inconsistencies in your stored procedures. The most reasonable
assumption is that the server and database collations were chosen for a
good reason, but it doesn't sound like there's any reason you need to
vary the case in your procedures. To answer your question, yes, it can
break things if you change the collation of a database. One of the more
likely things that can happen is that it will cause data type
conversions that make indices impossible to use, slowing down performance.

  The collation of the server instance is set when the instance is
installed. You can change database collations with ALTER DATABASE, but
why risk breaking things because you don't want to take the time to be
more careful coding?

Steve Kass
Drew University

Matt Tapia wrote:

>I have written several stored procedures on my local SQL server database.
>Through my coding i will occasionally change the case of a variable. For
>example I will declare a variable @SQL varchar(20) but later call it @sql
>(lower case).
>
>My sql server isn't case sensitive, but other databases I have loaded the
>stored procedure are. How can I change the SQL server settings to not be
>case sensitive? Plus how I can I change it back if it screws something up
>with other applications that use other databases on the server? Is it a
>server setting or database setting?
>
>Thanks in advance!
>
>
>
>
>



Relevant Pages

  • Re: What would you use?
    ... If they want to make use of their existing MS SQL Server then, as Alessandro suggested, you can use SQL Express. ... The database is still full MS SQL Server, so should an office outgrow Express, there's no problem upgrading them. ... It's not the browser interface, it is the difference between Paradox access, especially if on a local network, vs accessing a server database, especially if across the internet. ... a browser app, then there is no reason to *also* maintain a desktop GUI. ...
    (borland.public.delphi.non-technical)
  • Create SharePoint Portal failed.
    ... One mentioned ensuring that SQL Server uses a case ... 13:55:40 Service database server is 'USDC-JOHRIV'. ... Update dbo.propertylist set DisplayName = N'Last name' ...
    (microsoft.public.sharepoint.portalserver)
  • Re: ADO Connection Timeout
    ... to the central server, but you are willing to live with periods where it ... i.e. a local database or even a text file. ... to function until the connection can be restored to the server. ...
    (microsoft.public.data.ado)
  • Web Developers - Happy Hearts And HDTV! - Lockergnome
    ... Certificate on your MSIIS Web server. ... getting data from a database is only half the problem. ... Zend recently started a series about building rock solid code in PHP. ... which provides bulk database conversion. ...
    (freebsd-questions)
  • Config for OLTP system
    ... extrenal disks fo the 60GByte database server. ... IBM Informix Dynamic Server Configuration Parameters ... # BUFFSIZE - OnLine no longer supports this configuration parameter. ...
    (comp.databases.informix)