I am trying to get same functionality out of ASE 15.5
that exists in MSSQL 2008
in terms of case insensitivity.
Sort order has to remain binary for the application to work in standard mode, however new tables - enhancement to the product have foreign keys, and I'd like for them to be case insensitive.
That is, if tableA
has a value ABC
, than tableB
should be able to have foreign key on tableA
and insert value aBc
.
I was able to solve similar issue with indexing, by doing this:
create nonclustered index myindex on mytable(**upper**(mycolumn))
And index now gets used for doing case-insensitive matching, if I do:
select * from mytable where upper(mycolumn) = upper('My Value')
But I can't figure out how to do case-insensitive foreign key.
Any help is greatly appreciated. Thank you