SSMS Import Export Wizard Error: Cannot Delete Rows in Destination Table

Jay Jiang 106 Reputation points
2022-04-19T18:07:31.787+00:00

Hi everyone,

Here's the background: I built ETL in the database, schedule jobs to auto refresh, and then I go manually copy paste the table into Excel file to share with my team. Now I want to automate the export process. But the company doesn't have Microsoft Visio Studio. I guess I have to create SSIS package through SQL Server Import and Export Wizard, then use SQL Server Agent to schedule jobs to run the package.

In SQL Server Import and Export Wizard, it works fine if I choose "Create destination table" or "Append rows to the destination table".

194441-image.png 194451-image.png

But I don't want to have a lot of duplicated records in my Excel file, so I was try to use "Delete rows in destination table". But it gave me the following error:

194376-image.png 194425-image.png

I researched online, and all the solutions that I found suggest me to setup in "Execute SQL Task Editor". But I don't have Microsoft Visio Studio. Is there any other way to fix this error?

Any help would be appreciated.

Thanks.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
0 comments No comments
{count} votes

Accepted answer
  1. ZoeHui-MSFT 41,491 Reputation points
    2022-04-21T01:40:20.79+00:00

    Hi @Jay Jiang ,

    Actually, what you use to design the ETL package is SSDT which is a part of VS.

    The EULA of VS 2019 community edition has a specific section that allows enterprise users to use it for the SSDT workload.

    FOR MICROSOFT VISUAL STUDIO COMMUNITY 2019:

    Any number of your users may use the software only for Microsoft SQL Server development when using the SQL Server Data Tools or the extensions “Microsoft Analysis Services Projects”, “Microsoft Reporting Services Projects”, or “SQL Server Integration Services Projects” to develop Microsoft SQL Server database projects or Analysis Services, Reporting Services, Power BI Report Server, or Integration Services projects.

    See VS- license.

    About SSDT, please check download-sql-server-data-tools-ssdt.

    Please install VS2019 or earlier, VS2022 do not support BI project temporarily.

    VS-Downloads

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2022-04-20T02:47:48.947+00:00

    Hi @Jay Jiang ,

    OLE DB provider only allows to insert or update records to excel sheet. It does NOT allow delete operations.

    You could not use "Delete rows in destination table" to delete the data in the excel.

    SQL Server Import and Export Wizard is a simple way to copy data from a source to a destination.

    I'd suggest to install the VS to develop ETL packages, if company policy do not allow the installation, you may try with excel VBA to meet your requirement.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.