You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the `OPENROWSET` function with external data sources, the following permissions are required:
68
69
69
-
`ADMINISTER DATABASE BULK OPERATIONS` must be granted to the executing principal:
70
+
`OPENROWSET` with external data sources, requires the following permissions:
71
+
72
+
-`ADMINISTER DATABASE BULK OPERATIONS`
73
+
74
+
or
75
+
76
+
-`ADMINISTER BULK OPERATIONS`
70
77
71
-
```sql
72
-
GRANT ADMINISTER DATABASE BULK OPERATIONS TO [<principal_name>];
78
+
The following example grants `ADMINISTEER DATABASE BULK OPERATIONS` to a principal.
79
+
80
+
```sql
81
+
GRANT ADMINISTER DATABASE BULK OPERATIONS TO [<principal_name>];
73
82
```
74
83
75
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.
@@ -289,10 +298,6 @@ To bulk export or import SQLXML data, use one of the following data types in you
289
298
|`SQLNCHAR` or `SQLNVARCHAR`| The data is sent as Unicode. |
290
299
|`SQLBINARY` or `SQLVARYBIN`| The data is sent without any conversion. |
291
300
292
-
## Permissions
293
-
294
-
`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.
295
-
296
301
## Examples
297
302
298
303
This section provides general examples to demonstrate how to use `OPENROWSET BULK` syntax.
0 commit comments