Skip to main content
Solved

Add new field to SQL table

  • February 12, 2021
  • 2 replies
  • 69 views

markcoopersdc
Contributor
Forum|alt.badge.img+6

Hi

I need to add a field to a SQL table as the schema has changed. However, all the instructions indicate I need to drop the table. As there is data in there already, I cannot do this. Is there a way to add the column in FME, or should I just go into SQL Server Management Studio?

Best answer by markatsafe

@markcoopersdc​ It's probably easier to run your ALTER TABLE in SQL Server Management Studio, but you could trigger ALTER TABLE using the SQLExecutor if you wanted.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img+2
  • 1891 replies
  • Best Answer
  • February 12, 2021

@markcoopersdc​ It's probably easier to run your ALTER TABLE in SQL Server Management Studio, but you could trigger ALTER TABLE using the SQLExecutor if you wanted.


markcoopersdc
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 28 replies
  • February 16, 2021

Thank you, I didn't think of using the SQLExecutor but, as you say, I think it is easier to run it in SQL Server Management Studio