The collation will be set to case insensitive.
You need to do something like this
Select distinct col1 COLLATE sql_latin1_general_cp1_cs_as
From dbo.myTable
More Related Contents:
- Is it possible to write single query on two table which are not connected to each other?
- Max sal to print base on manager_id
- Can I use CASE statement in a JOIN condition?
- sql server 2008 management studio not checking the syntax of my query
- Create a date from day month and year with T-SQL
- How to create a table from select query result in SQL Server 2008 [duplicate]
- Creating an index on a table variable
- Get the week start date and week end date from week number
- Parse comma-separated string to make IN List of strings in the Where clause
- conditional unique constraint
- How do I execute a stored procedure once for each row returned by query?
- SELECT FOR UPDATE with SQL Server
- How to group by month from Date field using sql
- Why is my t-sql left join not working?
- PIVOT query on Distinct records
- SQL Server Update Trigger, Get Only modified fields
- Grouped string aggregation / LISTAGG for SQL Server
- Curly braces in T-SQL
- Performance of SQL Server 2005 Query
- OPENXML with xmlns:dt
- Custom Date/Time formatting in SQL Server
- How can I convert a Sql Server 2008 DateTimeOffset to a DateTime
- Find min and max for subsets of consecutive rows – gaps and islands
- The transaction log for the database is full
- When using GETDATE() in many places, is it better to use a variable?
- Should I use the CASCADE DELETE rule? [duplicate]
- Dynamic order direction
- Why is RAND() not producing random numbers?
- SQL, How to Concatenate results?
- Should every SQL Server foreign key have a matching index? [closed]