Append existing output option overwrites SQL table
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi all,
I have an existing SQL table in MS SQL Server. What I would like to do is to take an Excel file, which has the same field as the mentioned tabled, and just append it's fields to the table (as Union tool would do).
I do that by selecting 'Append existing' in output options. However, what it does, it just overwrites the existing table and all the old records are gone, only new from the Excel are in the final result. Do you know what might be the issue? Or am I using wrong output option? Thank you in advance.
Solved! Go to Solution.
- Labels:
- Output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @Inactive User,
Not sure what the issue is. I just tried Append existing and it worked fine.
Do you have any warning messages in the results window? I would also check your connection string see if it has any settings there?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Inactive User I would also try using the data Stream In and Write Data In tools:
See if you have more success use them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@IraWatt - which creation mode did you use in the data stream in tool? I was just replicating this process and wondering which configuration option you set as none of them seemed appropriate for appending to an existing table in a database. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @hannah_malek, I would have created a temporary table, then appended that table. I would have chose temporary as the table would be deleted after the end of the session meaning we are just have the combined table at the end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@hannah_malek datastream in shows different options depending upon the underlying DB type it is connecting to. With no Db selected you will not be able to see append - only create temporary/create new/overwrite (drop).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you @IraWatt and @apathetichell for your assistance!!
