WorksheetColumnName
Obtains an Excel Worksheet column name based on an ordinal position
- Free Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT SQLHTTP.net.WorksheetColumnName ( @ColumnNumber )
Name | Type | Description |
---|---|---|
@ColumnNumber | int | The ordinal position of an Excel Worksheet column. |
varchar(50)
1 2 3 4 |
SELECT SQLHTTP.net.WorksheetColumnName(2) AS Column2, SQLHTTP.net.WorksheetColumnName(100) AS Column100 |
1 2 3 4 5 |
Column2 Column100 ------------ ------------ B CV |