Skip to content

Instantly share code, notes, and snippets.

@UstDoesTech
Created February 22, 2022 08:35
Show Gist options
  • Save UstDoesTech/6fce12200a5ce1bca64fd7bc4fe1d013 to your computer and use it in GitHub Desktop.
Save UstDoesTech/6fce12200a5ce1bca64fd7bc4fe1d013 to your computer and use it in GitHub Desktop.
CREATE MASTER KEY ENCRYPTION
BY PASSWORD = '<Secure String>';
CREATE DATABASE SCOPED CREDENTIAL [SqlCredsMI]
WITH IDENTITY='Managed Identity';
CREATE EXTERNAL DATA SOURCE DataLakeMI WITH (
LOCATION = 'https://datalakename.dfs.core.windows.net'
, CREDENTIAL = SqlCredsMI
);
CREATE EXTERNAL FILE FORMAT DeltaLakeFormat WITH ( FORMAT_TYPE = DELTA );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment