Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when generating SQL for .SqlServerSave when using ODBC and OleDB connections #443

Open
mickvikt opened this issue Jun 5, 2023 · 1 comment

Comments

@mickvikt
Copy link

mickvikt commented Jun 5, 2023

There is a problem with generating SQL, since ODBC and OLE DB connections do not support named parameters in INSERT/UPDATE queries.
The parameters need to be replaced with ? symbols in the queries.

I've raised a sample PR showing a way how this can be remedied. Could we have something like this: https://github.com/paillave/Etl.Net/pull/442/

@paillave
Copy link
Owner

paillave commented Jun 7, 2023

millions thanks for this contribution; I will have a look. Nevertheless, I am currently working on a fix for odbc and oledb that can be used exactly in the same way that nativesql (with some manipulation of the query). Therefore, the usage would be more straigth forward, and the switch from a connection type to another doesn't involve any change in the etl process description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants