Handle new field in output data
- 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
Hello,
I would like to write in sql server table the data the source give...
When i use delete data and append as output option when a new field add in the source in the future,how can i handle and add automatically a new field in the destination table..
I don't want to use drop and re create as a workaround..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
For SQL Server, deleting and appending means deleting and appending "the data only", not fields. So what you want to do cannot be accomplished with that option, unfortunately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
i know this but i want a simple solution except this to drop a table...Do you think there is any solution?thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You might be able to "Alter" the table using a pre-SQL statement, but I'm not familiar with that. There may be some community posts on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am not sure if what you are trying to achieve would be possible without dropping the table. Even if you do incremental load in this scenario, the table structure should remain the same. A new column can be added either using the drop and create or using the alter table statement. If you use alter table and create a column then you will have to find a way to add values to this column.
