Skip to content

Commit 3d84ed0

Browse files
Merge pull request #34672 from MikeRayMSFT/250710-from-public
Update openrowset
2 parents a44e521 + 77230b5 commit 3d84ed0

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dev_langs:
1212
- "TSQL"
1313
monikerRange: "=azuresqldb-mi-current || >=sql-server-2016 || =azuresqldb-current || >=sql-server-linux-2017 || =fabric"
1414
---
15+
1516
# OPENROWSET BULK (Transact-SQL)
1617

1718
::: moniker range="=azuresqldb-mi-current||=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017"
@@ -281,7 +282,21 @@ To bulk export or import SQLXML data, use one of the following data types in you
281282

282283
## Permissions
283284

284-
`OPENROWSET` permissions are determined by the permissions of the user name that is being passed to the data provider. To use the `BULK` option requires `ADMINISTER BULK OPERATIONS` or `ADMINISTER DATABASE BULK OPERATIONS` permission.
285+
`OPENROWSET` with external data sources, requires the following permissions:
286+
287+
- `ADMINISTER DATABASE BULK OPERATIONS`
288+
289+
or
290+
291+
- `ADMINISTER BULK OPERATIONS`
292+
293+
The following example grants `ADMINISTEER DATABASE BULK OPERATIONS` to a principal.
294+
295+
```sql
296+
GRANT ADMINISTER DATABASE BULK OPERATIONS TO [<principal_name>];
297+
```
298+
299+
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.
285300

286301
## Examples
287302

0 commit comments

Comments
 (0)