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

Support converting multiple sp_executesql statements #6

Merged
merged 6 commits into from
Jul 1, 2020

Conversation

gerneio
Copy link
Contributor

@gerneio gerneio commented Jun 29, 2020

... and does not improperly overwrite other non-sp_executesql formatted queries. The goal of this PR is to allow a user to work with a whole set of SQL statements in ONE file and, regardless of their origin, convert only the necessary bits.

Tested in VSCODE dev environment.

... and does not improperly overwrite other non-sp_executesql formatted queries. The goal of this PR is to allow a user to work with a whole set of SQL statements in ONE file and, regardless of their origin, convert only the necessary bits.

Tested in VSCODE dev environment.
@gerneio
Copy link
Contributor Author

gerneio commented Jun 29, 2020

Packaged VSIX: sqlops-spexecutesql-to-sql-1.0.3.zip

@gerneio
Copy link
Contributor Author

gerneio commented Jun 29, 2020

Preview:

2020-06-29_17-20-11

...but will still fail (due to REGEX) when parameters are on new lines. Not sure how best to tackle that.
Copy link
Owner

@PejmanNik PejmanNik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your effort 👍
I'll release next version ASAP

@PejmanNik PejmanNik merged commit 20b4f9f into PejmanNik:master Jul 1, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants