How to delete Excel rows in SSIS?

Is it possible to delete rows from excel table from SSIS?

+3
source share
3 answers

From forum

  • create a file system task in the control thread by deleting the file.
  • create sql task, excel connection type, i used my previous excel connection for this and then used create script table as sql statement
  • left my previous export object the same, and then linked the stream of these threads in the described order.
+2
source

Microsoft's Arctic says you cannot delete a whole row, however you can delete a value in a cell. http://support.microsoft.com/kb/257819

- : http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.adonet/2006-12/msg00245.html

, , "", , ado.net SSIS. excel vb.net excel .

+1

, , , , , - , , :

SQL Server Excel:

enter image description here

: Excel :

enter image description here

, " ":

enter image description here

Excel, " SQL-":

enter image description here

" SQL-" :

. - "Excel"

. , ,

with. The SQL statement was copied from the original export task.

This is basically it. Run it and it should work. My connection to SQL Server is as follows:

enter image description here

My Excel connection that was created when the Export task was created looks like this:

enter image description here

In the "Data Stream" section using the source assistant, the source "OLE DB source" has the following:

enter image description here

And, using Assignment Assistant, the original Excel assignment has the following:

enter image description here

This is the SQL statement that I copied from the original Excel destination:

enter image description here

0
source

Source: https://habr.com/ru/post/1698819/


All Articles