EndPoint List Excel Worksheets of a File (i.e. List Tabs)
Parameters
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
Name |
DT_WSTR
|
nvarchar(120)
|
120 | False |
|
Position |
DT_I4
|
int
|
False |
||
visibility |
DT_WSTR
|
nvarchar(50)
|
50 | False |
|
OdataId |
DT_WSTR
|
nvarchar(300)
|
300 | False |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. |
Examples
SSIS
Use OneDrive Connector in API Source component to read data or in API Destination component to read/write data:
List Excel Worksheets of a File (i.e. List Tabs) using API Source
OneDrive
List Excel Worksheets of a File (i.e. List Tabs)

List Excel Worksheets of a File (i.e. List Tabs) using API Destination
OneDrive
List Excel Worksheets of a File (i.e. List Tabs)

ODBC application
Use these SQL queries in your ODBC application data source:
List Excel file Worksheets
Enumerates Worksheets that are part of Excel file
SELECT * FROM list_excel_worksheets
WITH (DriveId='b!GtLN726LE0eY5F2BBNi14'
,FileId='01SUOJPKECYDDVFZWXXXXXXXXXXXXXXXXX')
--DriveId can be retrieved by selecting from 'list_drives' endpoint.
--FileId can be retrieved by selecting from 'list_excel_files' endpoint.
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
List Excel file Worksheets
Enumerates Worksheets that are part of Excel file
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM list_excel_worksheets
WITH (DriveId=''b!GtLN726LE0eY5F2BBNi14''
,FileId=''01SUOJPKECYDDVFZWXXXXXXXXXXXXXXXXX'')
--DriveId can be retrieved by selecting from ''list_drives'' endpoint.
--FileId can be retrieved by selecting from ''list_excel_files'' endpoint.';
EXEC (@MyQuery) AT [LINKED_SERVER_TO_ONEDRIVE_IN_DATA_GATEWAY];