Connection String Options
The following is the full list of the options you can configure in the connection string for this provider.
| The scheme used for authentication. Accepted entries are NTLM, BASIC, DIGEST, FORMS, NONE, NEGOTIATE, and KERBEROSDELEGATION. |
| Define the tables within a spreadsheet. |
| The name of the Excel file to which to connect. |
| A password used to authenticate to a proxy-based firewall. |
| The TCP port for a proxy-based firewall. |
| The name or IP address of a proxy-based firewall. |
| The protocol used by a proxy-based firewall. |
| The user name to use to authenticate with a proxy-based firewall. |
| The folder containing the workbook specified by the File property. |
| Indicates whether the first row should be used as a column header when using the REST API. |
| Indicates whether to ignore errors that occurred during the calculation. |
| The Document Library to which to connect. |
| A path to the directory that contains the schema files defining tables, views, and stored procedures. |
| Core modules to be included in the log file. |
| Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time. |
| The other parameters necessary to connect to a data source, such as username and password, when applicable. |
| The password of the SharePoint Online account used to authenticate to the SharePoint Online server. |
| The authentication type to use to authenticate to the ProxyServer proxy. |
| This indicates whether to use the system proxy settings or not. Set ProxyAutoDetect to FALSE to use custom proxy settings. This takes precedence over other proxy settings. |
| A semicolon separated list of hosts or IPs that will be exempt from connecting through the ProxyServer . |
| A password to be used to authenticate to the ProxyServer proxy. |
| The TCP port the ProxyServer proxy is running on. |
| The hostname or IP address of a proxy to route HTTP traffic through. |
| The SSL type to use when connecting to the ProxyServer proxy. |
| A user name to be used to authenticate to the ProxyServer proxy. |
| The maximum number of rows to scan to look for columns available in the table. If TypeDetectionScheme is set to RowScan, this property will also control how many rows to scan in order to determine data type. |
| The edition of SharePoint being used. Set either SharePoint Online or SharePoint On-Premise. |
| The version of the SharePoint server to which you are connecting. |
| The certificate to be accepted from the server when connecting using TLS/SSL. |
| The domain of the user when using Single Sign On (SSO). |
| The URL of the security token service (STS) when using Single Sign On (SSO). |
| The value in seconds until the timeout error is thrown, canceling the operation. |
| Determines how to determine the data type of columns. |
| The base URL for a site or site collection. |
| The username of the SharePoint Online account used to authenticate to the server. |
| Whether or not the REST API is used for retrieving data. |
| Whether or not to use Single Sign On (SSO) to authenticate to SharePoint Online. |
Auth Scheme
The scheme used for authentication. Accepted entries are NTLM, BASIC, DIGEST, FORMS, NONE, NEGOTIATE, and KERBEROSDELEGATION.
Data Type
string
Default Value
"NTLM"
Remarks
Together with Password and User, this field is used to authenticate against the server. NTLM is the default option. Use the following options to select your authentication scheme:
NTLM: Set this to use your Windows credentials for authentication.
BASIC: Set this to use HTTP Basic authentication.
DIGEST: Set this to HTTP Digest authentication.
FORMS: Set this to use Forms authentication.
NEGOTIATE: If
AuthScheme is set to NEGOTIATE, the adapter will negotiate an authentication mechanism with the server. Set AuthScheme to NEGOTIATE if you want to use Kerberos authentication.
KERBEROSDELEGATION: Set this to use delegation through the Kerberos protocol. Set the User and Password of the account you want to impersonate.
Define Tables
Define the tables within a spreadsheet.
Data Type
string
Default Value
""
Remarks
This property is used to define the ranges within a spreadsheet that will appear as tables, when using the REST API. The value is a comma-separated list of name-value pairs in the form [Table Name]=[Sheet Name]![Range]. Table Name is the name of the table you want to use for the data and will be used when issuing queries. Sheet Name is the name of the sheet within the spreadsheet and Range is the range of cells that contain the data for the table.
Here is an example DefineTables value: DefineTables="DefinedTable1=Sheet1!A1:N25,DefinedTable2=Sheet2!C3:M53"
Note: If the name of a defined table is the same as one returned by default (e.g. same name as a worksheet), the defined table will replace the default table.
File
The name of the Excel file to which to connect.
Data Type
string
Default Value
""
Remarks
The name of Excel file to which to connect (including the extension). The file must exist.
Firewall Password
A password used to authenticate to a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This property is passed to the proxy specified by FirewallServer and FirewallPort, following the authentication method specified by FirewallType.
Firewall Port
The TCP port for a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This specifies the TCP port for a proxy allowing traversal of a firewall. Use FirewallServer to specify the name or IP address. Specify the protocol with FirewallType.
Firewall Server
The name or IP address of a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
This property specifies the IP address, DNS name, or host name of a proxy allowing traversal of a firewall. The protocol is specified by FirewallType: Use FirewallServer with this property to connect through SOCKS or do tunneling. Use ProxyServer to connect to an HTTP proxy.
Note that the adapter uses the system proxy by default. To use a different proxy, set ProxyAutoDetect to false.
Firewall Type
The protocol used by a proxy-based firewall.
Data Type
string
Default Value
"NONE"
Remarks
This property specifies the protocol that the adapter will use to tunnel traffic through the FirewallServer proxy. Note that by default the adapter connects to the system proxy; to disable this behavior and connect to one of the following proxy types, set ProxyAutoDetect to false.
Type | Default Port | Description |
TUNNEL | 80 | When this is set, the adapter opens a connection to SharePoint Excel Services and traffic flows back and forth through the proxy. |
SOCKS4 | 1080 | When this is set, the adapter sends data through the SOCKS 4 proxy specified by FirewallServer and FirewallPort and passes the FirewallUser value to the proxy, which determines if the connection request should be granted. |
SOCKS5 | 1080 | When this is set, the adapter sends data through the SOCKS 5 proxy specified by FirewallServer and FirewallPort. If your proxy requires authentication, set FirewallUser and FirewallPassword to credentials the proxy recognizes. |
To connect to HTTP proxies, use ProxyServer and ProxyPort. To authenticate to HTTP proxies, use ProxyAuthScheme, ProxyUser, and ProxyPassword.
Firewall User
The user name to use to authenticate with a proxy-based firewall.
Data Type
string
Default Value
""
Remarks
The FirewallUser and FirewallPassword properties are used to authenticate against the proxy specified in FirewallServer and FirewallPort, following the authentication method specified in FirewallType.
Folder
The folder containing the workbook specified by the File property.
Data Type
string
Default Value
""
Remarks
The full, hierarchical path of the subfolder in a Library where the File can be found. For example if the File is located in a folder called "SubFolder" within the folder called "BaseFolder", the property will be set to "/BaseFolder/SubFolder/".
Header
Indicates whether the first row should be used as a column header when using the REST API.
Data Type
bool
Default Value
true
Remarks
If true, the first row will be used as a column header. Otherwise, the pseudo column names A, B, C, etc. will be used.
Note: This property is only used when UseRESTAPI is 'True'.
Ignore Calc Error
Indicates whether to ignore errors that occurred during the calculation.
Data Type
bool
Default Value
true
Remarks
IgnoreCalcError defaults to false. If IgnoreCalcError is set to true, the provider will ignore any errors that occur due to formula calculation. If this happens, the formula result may be unreliable, but other data will be accurate.
Library
The Document Library to which to connect.
Data Type
string
Default Value
""
Remarks
This property indicates the name of the Document Library containing the Excel file. If no library is specified, the "Shared Documents" library will be used.
If you wish to connect to OneDrive for Business, set this property to "Documents".
Location
A path to the directory that contains the schema files defining tables, views, and stored procedures.
Data Type
string
Default Value
""
Remarks
The path to a directory which contains the schema files for the adapter (.rsd files for tables and views, .rsb files for stored procedures). The Location property is only needed if you would like to customize definitions (e.g., change a column name, ignore a column, etc.) or extend the data model with new tables, views, or stored procedures.
The schema files are deployed alongside the adapter assemblies. You must also ensure that Location points to the folder that contains the schema files. The folder location can be a relative path from the location of the executable.
Log Modules
Core modules to be included in the log file.
Data Type
string
Default Value
""
Remarks
Only the modules specified (separated by ';') will be included in the log file. By default all modules are included.
Max Rows
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
Data Type
string
Default Value
"-1"
Remarks
Limits the number of rows returned rows when no aggregation or group by is used in the query. This helps avoid performance issues at design time.
Other
The other parameters necessary to connect to a data source, such as username and password, when applicable.
Data Type
string
Default Value
""
Remarks
The Other property is a semicolon-separated list of name-value pairs used in connection parameters specific to a data source.
Integration and Formatting
DefaultColumnSize | Sets the default length of string fields when the data source does not provide column length in the metadata. The default value is 2000. |
ConvertDateTimeToGMT | Whether to convert date-time values to GMT, instead of the local time of the machine. |
RecordToFile=filename | Records the underlying socket data transfer to the specified file. |
Password
The password of the SharePoint Online account used to authenticate to the SharePoint Online server.
Data Type
string
Default Value
""
Remarks
Together with User, this field is used to authenticate against the SharePoint Online server;.
Proxy Auth Scheme
The authentication type to use to authenticate to the ProxyServer proxy.
Data Type
string
Default Value
"BASIC"
Remarks
This value specifies the authentication type to use to authenticate to the HTTP proxy specified by ProxyServer and ProxyPort.
Note that the adapter will use the system proxy settings by default, without further configuration needed; if you want to connect to another proxy, you will need to set ProxyAutoDetect to false, in addition to ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.
The authentication type can be one of the following:
BASIC: The adapter performs HTTP BASIC authentication.
DIGEST: The adapter performs HTTP DIGEST authentication.
NEGOTIATE: The adapter retrieves an NTLM or Kerberos token based on the applicable protocol for authentication.
PROPRIETARY: The adapter does not generate an NTLM or Kerberos token. You must supply this token in the Authorization header of the HTTP request.
If you need to use another authentication type, such as SOCKS 5 authentication, see
Firewall Type.
Proxy Auto Detect
This indicates whether to use the system proxy settings or not. Set ProxyAutoDetect to FALSE to use custom proxy settings. This takes precedence over other proxy settings.
Data Type
bool
Default Value
true
Remarks
By default, the adapter uses the system HTTP proxy. Set this to false if you want to connect to another proxy.
To connect to an HTTP proxy, see
Proxy Server.
For other proxies, such as SOCKS or tunneling, see
Firewall Type.
Proxy Exceptions
A semicolon separated list of hosts or IPs that will be exempt from connecting through the ProxyServer .
Data Type
string
Default Value
""
Remarks
The ProxyServer will be used for all addresses, except for addresses defined in this property. Use semicolons to separate entries.
Note that the adapter will use the system proxy settings by default, without further configuration needed; if you want to explicitly configure proxy exceptions for this connection, you will need to set ProxyAutoDetect to false, and configure ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.
Proxy Password
A password to be used to authenticate to the ProxyServer proxy.
Data Type
string
Default Value
""
Remarks
This property is used to authenticate to an HTTP proxy server that supports NTLM (Windows), Kerberos, or HTTP authentication. To specify the HTTP proxy, you can set ProxyServer and ProxyPort. To specify the authentication type, set ProxyAuthScheme.
If you are using HTTP authentication, additionally set ProxyUser and ProxyPassword to HTTP proxy.
If you are using NTLM authentication, set ProxyUser and ProxyPassword to your Windows password. You may also need these to complete Kerberos authentication.
For SOCKS 5 authentication or tunneling, see
Firewall Type.
By default, the adapter uses the system proxy. If you want to connect to another proxy, set ProxyAutoDetect to false.
Proxy Port
The TCP port the ProxyServer proxy is running on.
Data Type
string
Default Value
"80"
Remarks
The port the HTTP proxy is running on that you want to redirect HTTP traffic through. Specify the HTTP proxy in
ProxyServer. For other proxy types, see
Firewall Type.
Proxy Server
The hostname or IP address of a proxy to route HTTP traffic through.
Data Type
string
Default Value
""
Remarks
The hostname or IP address of a proxy to route HTTP traffic through. The adapter can use the HTTP, Windows (NTLM), or Kerberos authentication types to authenticate to an HTTP proxy.
If you need to connect through a SOCKS proxy or tunnel the connection, see
Firewall Type.
By default, the adapter uses the system proxy. If you need to use another proxy, set ProxyAutoDetect to false.
Proxy SSL Type
The SSL type to use when connecting to the ProxyServer proxy.
Data Type
string
Default Value
"AUTO"
Remarks
This property determines when to use SSL for the connection to an HTTP proxy specified by ProxyServer. This value can be AUTO, ALWAYS, NEVER, or TUNNEL. The applicable values are the following:
AUTO | Default setting. If the URL is an HTTPS URL, the adapter will use the TUNNEL option. If the URL is an HTTP URL, the component will use the NEVER option. |
ALWAYS | The connection is always SSL enabled. |
NEVER | The connection is not SSL enabled. |
TUNNEL | The connection is through a tunneling proxy: The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy. |
Proxy User
A user name to be used to authenticate to the ProxyServer proxy.
Data Type
string
Default Value
""
Remarks
The ProxyUser and ProxyPassword options are used to connect and authenticate against the HTTP proxy specified in ProxyServer.
You can select one of the available authentication types in ProxyAuthScheme. If you are using HTTP authentication, set this to the username of a user recognized by the HTTP proxy. If you are using Windows or Kerberos authentication, set this property to a username in one of the following formats:
user@domain
domain\user
Row Scan Depth
The maximum number of rows to scan to look for columns available in the table. If TypeDetectionScheme is set to RowScan, this property will also control how many rows to scan in order to determine data type.
Data Type
string
Default Value
"50"
Remarks
Since Excel Services is schemaless, the columns in a table must be determined by scanning table rows. This value determines the maximum number of rows that will be scanned.
Share Point Edition
The edition of SharePoint being used. Set either SharePoint Online or SharePoint On-Premise.
Data Type
string
Default Value
"SharePoint Online"
Remarks
The edition of SharePoint being used. Set either SharePoint Online or SharePoint On-Premise.
Share Point Version
The version of the SharePoint server to which you are connecting.
Data Type
string
Default Value
"SharePoint 2013"
Remarks
Accepted entries are SharePoint 2013 and SharePoint 2010.
SSL Server Cert
The certificate to be accepted from the server when connecting using TLS/SSL.
Data Type
string
Default Value
""
Remarks
If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine will be rejected.
This property can take the forms:
Description | Example |
A full PEM Certificate (example shortened for brevity) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
A path to a local file containing the certificate | C:\cert.cer |
The public key (example shortened for brevity) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
The MD5 Thumbprint (hex values can also be either space or colon separated) | ecadbdda5a1529c58a1e9e09828d70e4 |
The SHA1 Thumbprint (hex values can also be either space or colon separated) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
If not specified, any certificate trusted by the machine will be accepted. Use '*' to signify to accept all certificates (not recommended for security concerns).
SSO Domain
The domain of the user when using Single Sign On (SSO).
Data Type
string
Default Value
""
Remarks
This property is only applicable when using Single Sign On (UseSSO is set to true) and if the domain of the User (e.g. user@mydomain.com) is different than the domain configured within the SSO service (e.g. user@myssodomain.com).
This property may be required when using OneLogin or OKTA SSO services.
STSURL
The URL of the security token service (STS) when using Single Sign On (SSO).
Data Type
string
Default Value
""
Remarks
This property only needs to be set when using Single Sign On with a local Active Directory Federation Services (ADFS).
Timeout
The value in seconds until the timeout error is thrown, canceling the operation.
Data Type
string
Default Value
"60"
Remarks
If the Timeout property is set to 0, operations do not time out: They run until they complete successfully or encounter an error condition.
If Timeout expires and the operation is not yet complete, the adapter throws an exception.
Type Detection Scheme
Determines how to determine the data type of columns.
Data Type
string
Default Value
"RowScan"
Remarks
None | Setting TypeDetectionScheme to None will return all columns as the string type. |
RowScan | Setting TypeDetectionScheme to RowScan will scan rows to heuristically determine the data type. The RowScanDepth determines the number of rows to be scanned. |
URL
The base URL for a site or site collection.
Data Type
string
Default Value
""
Remarks
The following are examples of valid URLs:
http://server/SharePoint/
http://server/Sites/mysite/
http://server:90/
The provider will use Url to derive URLs for other calls to the server.
User
The username of the SharePoint Online account used to authenticate to the server.
Data Type
string
Default Value
""
Remarks
Together with Password, this field is used to authenticate to the SharePoint Online server specified in Url.
Use RESTAPI
Whether or not the REST API is used for retrieving data.
Data Type
string
Default Value
"False"
Remarks
Whether or not the REST API is used for retrieving data. Enable this option to use the REST API when connecting to SharePoint 2013, SharePoint 2016, and SharePoint Online. In these SharePoint versions, both the REST API and OData API are available.
Use the REST API to access spreadsheets and ranges as tables as well as table objects. The OData API enables access to only table objects.
See
Data Model for more information on querying spreadsheets organized in different ways.
Use SSO
Whether or not to use Single Sign On (SSO) to authenticate to SharePoint Online.
Data Type
bool
Default Value
false
Remarks
When set to true, Single Sign On (SSO) will be used to authenticate to SharePoint Online using the account specified via User and Password. Active Directory Federation Services (ADFS), OneLogin, and OKTA SSO identity providers are supported.
SSODomain may be required to be set if the domain configured on the SSO domain is different than the domain of the User.
If you need to use a local ADFS instance to perform authentication, STSURL must be set to the URL of the local instance.
SSO is only applicable when using SharePoint Online. SSO is not supported for On-Premise versions of SharePoint.