1

I manage an Excel 2007 sheet using SQL, using the following connection string:

Provider=Microsoft.ACE.OLEDB.12.0;Data Source='Invoice.xlsm';Extended Properties='Excel 12.0;IMEX=1;HDR=Yes'

Everything works just as it should apart from the Delete statement. When I try to perform Delete From [tablename$] where code like '1'), I get an error -2147467259 (80004005).

I can't explain it, since all the other select and insert statements work just fine.

4

1 回答 1

2

在 Microsoft 支持中搜索了几个小时后,我发现了以下内容:

The Catalog object has a Create method but does not have a Delete method.

我想没有办法在 excel 表中执行 SQL Delete 语句。

于 2013-02-12T15:43:02.053 回答