URI
Excel ブックファイルを含むリソースの場所へのURI(Uniform Resource Identifier)です。
データ型
string
デフォルト値
""
解説
この接続プロパティは、IncludeSubdirectories と併せて、選択されたブックを指定します。これは、connector がテーブルとしてモデル化するスプレッドシートを持つブックのプールです。AggregateFiles 接続プロパティは、このプール内のブック(その他は無視されます)に対してのみ動作します。
この接続プロパティが個別のブックファイルのパスに設定されている場合、そのブックのシートのみがテーブルとしてリストされます。
この接続プロパティがフォルダパスに設定されている場合、指定されたフォルダ直下のすべてのスプレッドシートのシートと、ネストされたフォルダ(IncludeSubdirectories がTrue に設定されている場合)のシートがテーブルとしてリストされます。DirectoryRetrievalDepth 接続プロパティは、このフォルダを基準として動作します。
接続文字列とクエリの例
以下は、Excel ファイルまたはストリームへの接続文字列の例です。
| サービスプロバイダー | URI 形式 | 接続例 |
| Local | localPath
file://localPath/file.xlsx | URI=C:/folder1/file.xlsx |
| HTTP またはHTTPS | http://remoteStream
https://remoteStream | URI=http://www.host1.com/streamname1; |
| Amazon S3 | s3://bucket1/folder1/file.xlsx | URI=s3://bucket1/folder1/file.xlsx; AWSAccessKey=token1; AWSSecretKey=secret1; AWSRegion=OHIO; |
| Google Drive | gdrive://remotePath/file.xlsx | URI=gdrive://folder1/file.xlsx;InitiateOAuth=GETANDREFRESH; |
| Box | box://remotePath/file.xlsx | URI=box://folder1/file.xlsx; InitiateOAuth=GETANDREFRESH; OAuthClientId=oauthclientid1; OAuthClientSecret=oauthcliensecret1; CallbackUrl=http://localhost:12345; |
| FTP またはFTPS | ftp://server:port/remotePath/file.xlsx
ftps://server:port/remotepath/file.xlsx | URI=ftps://localhost:990/folder1/file.xlsx; User=user1; Password=password1; |
| SFTP | sftp://server:port/remotePath/file.xlsx | URI=sftp://127.0.0.1:22/remotePath/file.xlsx; User=user1; Password=password1; |
| Sharepoint | sp://https://server/remotePath/file.xlsx | URI=sp://https://domain.sharepoint.com/Documents/file.xlsx; User=user1; Password=password1; |