-
-
Notifications
You must be signed in to change notification settings - Fork 809
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
Export-DbaLogin - add 2022 support #9569
base: development
Are you sure you want to change the base?
Conversation
Failed test is unrelated - looks like it needs fixing so it doesn't just specify the first process but filters to get the one the test is looking for
|
PR is good but unfortunately I think the original issue can only be resolved upgrading our library that bundles SMO to support 2022. |
This command doesn't do anything differently for 2022 vs 2019 though - it's only using that parameter to exclude things for older versions Both these spots - this PR just adds the option to the parameter. https://github.com/dataplat/dbatools/blob/development/public/Export-DbaLogin.ps1#L411 https://github.com/dataplat/dbatools/blob/development/public/Export-DbaLogin.ps1#L520 tbh - it would probably be better to write this slightly cleverer (if that's a word) - so we don't need to remember to add new versions - perhaps something like this, but I don't love that 😆
|
I concur but "nicer design pattern" for this function is another unrelated thing for what I think it's the root cause #9568 |
Hmm - I hadn't seen that discussion, I was tagged on bluesky about it not showing up for the Wonder if this is the same issue or not, I will see if I can replicate locally (probably tomorrow at this point) and get back to you. Thanks for connecting the two! |
ughhhhh that library is just hell to upgrade and even the SqlServer module is running into compat issues bc Azure is so mixed in. I'll have time to address this in March so if anyone else would like to jump in, that'd be fab (@niphlod had messaged me previously). I just open Visual Studio then say update but then I also have to match it up with sqlpackage and SpaghettiDBA's DLLs. It's truly hell and pushes the limits of my skillset. |
I think @spaghettidba mentioned he'd be doing a nuget package but I'm not finding XESmartTarget there. If not, I think we'll also need to update his packages too in our library which may require and update in the build file to https://github.com/spaghettidba/XESmartTarget/releases/download/v1.5.7/XESmartTarget_x64.msi |
oh also we need to add 2025 support 😭 |
I tried. Multiple times. I watched videos, I read articles. Apparently I'm not smart enough to create a nuget package. |
Type of Change
Invoke-ManualPester
)Purpose
The
DestinationVersion
parameter didn't have 2022 listed, no code in the function needs to change as we just check if it's older versions and then skip one section.We can probably improve this going forward - but this is a quick fix to get John back on track
https://bsky.app/profile/sqlmct.bsky.social/post/3letxumb4f22c
Approach
Added the missing value to the parameter