DELETE Rows In Excel

  • How to delete rows in an excel worksheet?

    I have the following code in the exeutesqltask but i keep getting a syntx error.

    'DELETE FROM 4DialMeters'

    Remeber that this is an Excel source and I need to find out what the correct syntax is for the DELETE Statement in Excel.


    Kindest Regards,

  • What pray tell is the syntax error?

    To be honest, I don't think you can. I seem to remember doing it through script, not SQL. I may be wrong though.

    Cheers,CrispinI can't die, there are too many people who still have to meet me!It's not a bug, SQL just misunderstood me!

  • I agree, I think that you'd have to perform a work around... steps would be something like:

    1. Import to a temp table

    2. Manipulate the records in the temp table

    3. Export back to excel overwriting the old file

    Kindest Regards,

    Frank Bazan

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply