Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

Change Collation

$
0
0

I need to perform a case sensitive query using my SQL Server Compact v4 database.

Since the column in question should always be treated in a case sensitive fashion I want to change the collation on it permanently. I have tried this:

ALTER TABLE Units
ALTER COLUMN UnitString NVARCHAR(20) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL

But I get am error parsing the query.

  • Is it possible to change the collation of a single column in SQL Server Compact v4.0?
  • If not, is it possible to change the collation of the entire database?
  • If neither of those options are possible - what can I do? I'd rather not handle this on the client-side.

TIA


Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>