Hello @Mallikarjuna Avula ,
Thanks for the question and using MS Q&A platform.
Sorry, you can't create external tables with a different collation on the table level, collation is only applicable on the column level in the external tables.
Please see the below example for your reference.
USE [mydbname];
GO
CREATE EXTERNAL TABLE populationExternalTable
(
[country_code] VARCHAR (5) COLLATE Latin1_General_100_CI_AI_SC_UTF8,
[country_name] VARCHAR (100) COLLATE Latin1_General_100_CI_AI_SC_UTF8,
[year] smallint,
[population] bigint
)
WITH (
LOCATION = 'csv/population/population.csv',
DATA_SOURCE = sqlondemanddemo,
FILE_FORMAT = QuotedCSVWithHeaderFormat
);
Also please see this documentation for more details on the external table syntax
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators