-
Notifications
You must be signed in to change notification settings - Fork 929
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
Final ADS-side hookup for sqlcmd vars #10815
Conversation
const varName = sqlCmdVar.getAttribute(constants.Include); | ||
|
||
const varValue = sqlCmdVar.getElementsByTagName(constants.DefaultValue)[0].childNodes[0].nodeValue; | ||
this.sqlCmdVariables[varName] = varValue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tell me if I understand correctly - we are only taking the values from proj file as is?
(we should give a way to edit at deployment time... through profile or in the dialog itself like SSDT)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, it's just passthrough from the sqlproj file here to make sure it has proper interop with projects coming from SSDT. I figured variable editing would happen when we get something like a project properties dialog going since that's the existing experience for defining and setting them.
Made #10841 to track
This PR fixes #10703 by adding support for reading sqlcmdvars from the project file, and adds a test for confirming they're part of the final deployment/script generation task profiles.