Skip to content

Commit 77230b5

Browse files
committed
Move permissions.
1 parent 2741edb commit 77230b5

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,6 @@ OPENROWSET( BULK 'data_file' ,
6565
[ , ORDER ( { column [ ASC | DESC ] } [ , ...n ] ) [ UNIQUE ] ]
6666
```
6767

68-
## Permissions
69-
70-
`OPENROWSET` with external data sources, requires the following permissions:
71-
72-
- `ADMINISTER DATABASE BULK OPERATIONS`
73-
74-
or
75-
76-
- `ADMINISTER BULK OPERATIONS`
77-
78-
The following example grants `ADMINISTEER DATABASE BULK OPERATIONS` to a principal.
79-
80-
```sql
81-
GRANT ADMINISTER DATABASE BULK OPERATIONS TO [<principal_name>];
82-
```
83-
84-
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.
85-
8668
## Arguments
8769

8870
### BULK arguments
@@ -298,6 +280,24 @@ To bulk export or import SQLXML data, use one of the following data types in you
298280
| `SQLNCHAR` or `SQLNVARCHAR` | The data is sent as Unicode. |
299281
| `SQLBINARY` or `SQLVARYBIN` | The data is sent without any conversion. |
300282

283+
## Permissions
284+
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.
300+
301301
## Examples
302302

303303
This section provides general examples to demonstrate how to use `OPENROWSET BULK` syntax.

0 commit comments

Comments
 (0)