Skip to content

Commit c8e383e

Browse files
committed
Merge branch 'patch-10' of https://github.com/jasonhorner/sql-docs into 250710-from-public
2 parents 16a52fa + dc35da2 commit c8e383e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/t-sql/functions/openrowset-bulk-transact-sql.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ OPENROWSET( BULK 'data_file' ,
6363
[ , ROWS_PER_BATCH = rows_per_batch ]
6464
[ , ORDER ( { column [ ASC | DESC ] } [ , ...n ] ) [ UNIQUE ] ]
6565
```
66+
## Permissions
67+
To use the `OPENROWSET` function with external data sources, the following permissions are required:
68+
69+
`ADMINISTER DATABASE BULK OPERATIONS` must be granted to the executing principal:
70+
71+
```sql
72+
GRANT ADMINISTER DATABASE BULK OPERATIONS TO [<principal_name>];
73+
```
74+
75+
If the target storage account is private, the principal must also have the **Storage Blob Data Reader** role (or higher) assigned at the container or storage account level.
6676

6777
## Arguments
6878

0 commit comments

Comments
 (0)