| Author |
Message |
troyhunt
Joined: 28 Nov 2010 Posts: 15 Location: Australia
|
Posted: Sun Nov 28, 2010 3:42 am Post subject: Will SQL Source Control identify a case change? |
|
|
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. |
|
| Back to top |
|
 |
chriskelly
Joined: 19 Apr 2010 Posts: 253 Location: Cambridge, UK
|
Posted: Mon Nov 29, 2010 5:17 pm Post subject: |
|
|
This behaviour could be caused by SQL Server itself if the database has been set with a case insensitive collation.
To look at whether this is the case, see this StackOverflow article:
http://stackoverflow.com/questions/1411161/sql-server-check-case-sensitivity
If it is the case then you will need to change you database to a Case Sensitive collation. |
|
| Back to top |
|
 |
troyhunt
Joined: 28 Nov 2010 Posts: 15 Location: Australia
|
Posted: Wed Dec 01, 2010 11:20 am Post subject: |
|
|
After spending more time looking at this issue in depth, having Chris unsure of a resolution and not getting any other feedback from this post or the equivalent one on Stack Overflow - http://stackoverflow.com/questions/4302779/can-red-gate-sql-source-control-identify-a-case-change - I'm calling this one a bug. I'd love to be proven wrong, but that seems to be the case (sorry about the pun!).
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 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group