Skip to content

Commit 87bad6f

Browse files
authored
Merge pull request #115101 from jovanpop-msft/patch-168
Update create-external-table-as-select.md
2 parents a6fd188 + 32d8c81 commit 87bad6f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/synapse-analytics/sql/create-external-table-as-select.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ You can use CREATE EXTERNAL TABLE AS SELECT (CETAS) statement to store the query
3333
USE [mydbname];
3434
GO
3535

36+
CREATE DATABASE SCOPED CREDENTIAL [SasTokenWrite]
37+
WITH IDENTITY = 'SHARED ACCESS SIGNATURE',
38+
SECRET = 'sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-04-18T20:42:12Z&st=2019-04-18T12:42:12Z&spr=https&sig=lQHczNvrk1KoYLCpFdSsMANd0ef9BrIPBNJ3VYEIq78%3D';
39+
GO
40+
3641
CREATE EXTERNAL DATA SOURCE [MyDataSource] WITH (
37-
LOCATION = 'https://sqlondemandstorage.blob.core.windows.net/csv'
42+
LOCATION = 'https://<storage account name>.blob.core.windows.net/csv', CREDENTIAL [SasTokenWrite]
3843
);
3944
GO
4045

0 commit comments

Comments
 (0)