Groups | Blog | Home
all groups > sql server dts > february 2006 >

sql server dts : Export to Access package failure


Hans Ruck 2
2/7/2006 4:12:00 AM
Hi,

I have created a package which transfers some table contents from a SQL
Server database to an Access counterpart. An "Execute SQL Task" deletes
the already existing data from the target tables and then, after the
succesful completion of the operation, the transfer occurs.

Unfortunately, there is a table that does not get filled with the
corresponding data. Its content is deleted by the initial task and it
remains like this, without receiving the input from the package. It is
strange, because the package reports a complete succes and even
displays the correct number of rows that are supposed to be transfered.
Also, the accident occurs only when the target table has data to be
deleted; if empty, the transfer executes ok.

Do you know how should i manage this? I think it's about synchronizing
some statements but i have no idea about how it could be done.
Allan Mitchell
2/7/2006 4:15:23 AM
Hello Hans,

So the table does not get filled and the package returns success

perhaps the table is being filled but the DELETE statement is being run after
the INSERT and therefore removes the rows you just put in?

If that is the case the Workflow should sort this out

http://www.sqldts.com/default.aspx?287


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

[quoted text, click to view]

Hans Ruck 2
2/7/2006 4:47:09 AM
Hello Allan, thank you for the replay.

I have used green arrows only, all starting from the deletion task. The
insertions should carry on only after this prelude completes.
Something happens on the Access side, which is probably losing the
insertion stuff on that table. By the way, it's the last table to
delete from; the others are treated just fine.
Allan Mitchell
2/7/2006 5:11:37 AM
Hello Hans,


When you run the package in designer you see the task that deletes the rows
execute and then you see the task that reinserts rows. The designer tells
you that it transferred n rows. On looking in the Access table you see no
rows.

That would be strange.

Can you build a package that just inserts rows into that package and nothing
else?

You are doing this through designer and not a job right?


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

[quoted text, click to view]

Hans Ruck 2
2/7/2006 5:31:36 AM
I am doing it through the designer, that is correct. And it behaves
exactly as you have pointed out.
If i remove the deletion task then everything runs ok. I think it's
normal for it to behave this way, in this case there is no completion
to be waiting for.
AddThis Social Bookmark Button