Hi,
I can access data from xls file using OpenDataSource. But if the worksheet name starts with numeric character it gives error. Scripts are as follows:
If the worksheet name is 'Sheet1' it works fine with script below:
But if the worksheet name is '2007data' the script below gives error:
Can anyone give me a solution? I need to keep the worksheet name starting with numeric character.
Thanks.
I can access data from xls file using OpenDataSource. But if the worksheet name starts with numeric character it gives error. Scripts are as follows:
If the worksheet name is 'Sheet1' it works fine with script below:
Code:
select * from OpenDataSource ( 'Microsoft.Jet.OLEDB.4.0', 'Data Source="c:\test.xls";Extended properties=Excel 8.0')...[Sheet1$]
Code:
select * from OpenDataSource ( 'Microsoft.Jet.OLEDB.4.0', 'Data Source="c:\test.xls";Extended properties=Excel 8.0')...[2007data$]
Thanks.
Comment