Will SQL Source Control identify a case change?
troyhunt
Posts: 17 Bronze 3
I just made a number of case only changes (just column names) to a DB under source control and noticed SQL Source Control didn't pick them up (no changes to commit).
Will the tool natively identify changes in case? Is it dependent on the collation of the DB? These names are persisting through to an ORM so the case becomes pretty important at compile time.
Will the tool natively identify changes in case? Is it dependent on the collation of the DB? These names are persisting through to an ORM so the case becomes pretty important at compile time.
Tagged:
Comments
To look at whether this is the case, see this StackOverflow article:
http://stackoverflow.com/questions/1411 ... ensitivity
If it is the case then you will need to change you database to a Case Sensitive collation.
So to specifically answer my question, no, it appears SQL Source Control can't natively version a case-only change. However, there is a workaround involving making the change in the working directory and submitting this back via TortoiseSVN (assuming the VCS is SVN). Th full details are now in "Defeating Red Gate’s SQL Source Control insensitivity" - http://www.troyhunt.com/2010/12/defeating-red-gates-sql-source-control.html
Current versions of SQL Source Control will detect case changes according to the Database collation settings, if it's a database with a CI collation it will not detect differences in case sensitivity.
Thank you,
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools