Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

DELETE Rows In Excel Expand / Collapse
Author
Message
Posted Wednesday, January 30, 2008 5:09 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Wednesday, July 2, 2014 8:27 PM
Points: 871, Visits: 280
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,



Post #449752
Posted Thursday, January 31, 2008 3:00 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, July 14, 2014 3:32 PM
Points: 917, Visits: 412
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,
Crispin


I can't die, there are too many people who still have to meet me!

It's not a bug, SQL just misunderstood me!
Post #449841
Posted Thursday, January 31, 2008 7:10 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, February 28, 2014 4:38 AM
Points: 268, Visits: 1,072
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
Post #449929
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse