Forever I've used a case sensitive collation in Sql Server (SQL_Latin1_General_CP1_CS_AS). I'm trying to move to Sql Azure Database and I've run into an unexpected problem. It looks like it's impossible to have case sensitive column names. Can this be true?
I create my database...
CREATE DATABASE MyDatabase
COLLATE SQL_Latin1_General_CP1_CS_AS
And I create my table...
CREATE TABLE [MyTable]
(
[Name] NVarChar (4000) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[name] NVarChar (4000) COLLATE SQL_Latin1_General_CP1_CS_AS NULL
)
And I get the error: Column names in each table must be unique. Column name 'name' in table 'MyTable' is specified more than once.
Ugh, disaster. This works perfectly in Sql Server 2012. However on Sql Azure I can't seem to make it happen. Does anyone know why this is not working in Sql Azure? Does anyone know how I can make this work in Sql Azure? Thanks.