Friday, March 9, 2012

Problems with deleting rows in destination table when exporting to Excel

Hi,

I export one table to Excel using Export Wizard. Second time I have used this creator I have checked option "Delete rows in destination table" because table already exists in Excel file.

During execution I get an error:

"Error 0xc002f210: Preparation SQL Task: Executing the query "DELETE FROM 'MyTable'" failed with following error: \" and here is my translation from my language: "Deleting data from linked table is not supported by this version of ISAM"

I have also saved this package to a file and here is the full connection string to my Excel file:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\przemek\Pulpit\myfile.xls;Extended Properties="EXCEL 8.0;HDR=YES";

Few days ago I have been using SQL2000 on the same machine and the same export was working properly.

Any suggestions?

Thanks.

Przemo

I have found solution. The problem is that ISAM simple do not support DELETE on Jet 4.0 tables.

The solution is to DROP table and CREATE it again.

Przemo

No comments:

Post a Comment