Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. MS SQL Server 2005 - SQL Problem

MS SQL Server 2005 - SQL Problem

Scheduled Pinned Locked Moved Database
helpdatabasesql-serversysadminquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Programm3r
    wrote on last edited by
    #1

    Hi all, Can SQL Server 2005 handle non-case sensitive sql statements. i.e. A table with the fields (fieldOne - fieldTwo) has some values: fieldOne fieldTwo i insert L lenght c car I inject C construct l loose So if one would to do a sql statement on that table i.e: A bit of ASP: var x = Request.QueryString("variable"); Lets say the value of x was: l "SELECT fieldTwo FROM table WHERE fieldOne = '"+x+"'" The output would be: Lenght .... This is what is happening to me .. :confused::confused: Can anyone help.....

    The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r

    K 1 Reply Last reply
    0
    • P Programm3r

      Hi all, Can SQL Server 2005 handle non-case sensitive sql statements. i.e. A table with the fields (fieldOne - fieldTwo) has some values: fieldOne fieldTwo i insert L lenght c car I inject C construct l loose So if one would to do a sql statement on that table i.e: A bit of ASP: var x = Request.QueryString("variable"); Lets say the value of x was: l "SELECT fieldTwo FROM table WHERE fieldOne = '"+x+"'" The output would be: Lenght .... This is what is happening to me .. :confused::confused: Can anyone help.....

      The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r

      K Offline
      K Offline
      karam chandrabose
      wrote on last edited by
      #2

      you have to alter your collation settings, the default collation in sql server 2005 is latin1_general_CI_AS CI = case insensitve AS = Accent sensitive you might have to change it in to Case sensitive. do google on "SQL Server Collation" for more details. have fun. cheers

      P 1 Reply Last reply
      0
      • K karam chandrabose

        you have to alter your collation settings, the default collation in sql server 2005 is latin1_general_CI_AS CI = case insensitve AS = Accent sensitive you might have to change it in to Case sensitive. do google on "SQL Server Collation" for more details. have fun. cheers

        P Offline
        P Offline
        Programm3r
        wrote on last edited by
        #3

        Thank you very much ... :) Regards,

        The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups