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

Suggestion: Let SqlServer source extension use a file for QueryText #157

Open
stefanedwards opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@stefanedwards
Copy link

I propose that the SqlServer extension can point to a file to obtain the SQL statement.

This will improve the readability greatly for larger/multiline/complex SQL statements.

Essentially adding this to the SqlServerSource settings:

{
    "ConnectionString": "",
    "QueryText": "", // required if FilePath not set.
    "FilePath": ""   // required if QueryText not set.
}

I have implemented the solution, and it is ready for a pull request.

main...stefanedwards:data-migration-desktop-tool:add-query-file

Should the solution perhaps implement Cosmos.DataTransfer.Common.FileDataSource.ReadSourceAsync instead of directly reading the file?

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

1 participant