OleDB Command Question
Hi:
Version:Professional ASP.NET Edition 2.11.1 (released at 15 Apr 2016)
I use Excel file to query but table name no '[' & ']' in query string , I using command will error.
How to do, let table have '[ ]' Coated? Thanks.
Correct query string:
select * from [ 工作表1$ ]
Yes. We developed special syntax providers for different SQL engines that support different SQL syntax and metadata extraction rules. It's a good idea to use them rather than uncertain generic syntax. MS Jet is a common SQL engine that is used to work with MS Access, Excel and Text/CSV files. MSAccessSyntaxProvider suits for all of these data sources.