Hi.
Is there a way to avoid removing spaces or special characters from Database column names and make the query work. Possibly using some escape characters or variables in the Execute query activity which will avoid these errors?
Thanks Bruno.
But can this syntax to specify column names as [my column name] be used in Insert Database activity as well, where an entire datatable is being inserted into the database table?
If yes, can you please provide me with a sample syntax, please.
Yes. Thats the activity I am using, but this activity is ended with execution errors even though the column names between the datatable and DB table are the same.
Two errors encountered:
Error 1 (Space issue) : Incorrect syntax near ‘PAYMENT’. Unknown object type ‘DTE’ used in a CREATE, DROP, or ALTER statement.Unknown object type ‘USERID’ used in a CREATE, DROP, or ALTER statement , Incorrect syntax near ‘BENCHMARK’.
Error 2 (Keyword issue) : Incorrect syntax near the keyword ‘ALL’ , Incorrect syntax near the keyword ‘TABLE’.
There has just been some discussion around it here:
I suppose it could indeed be improved.
I will mark this topic as pr-welcome as the activity is one of our open-sourced ones and we are happy for one of our community members to have a look and improve it