-
Notifications
You must be signed in to change notification settings - Fork 5
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
Invoke-DbaQuery not working #1575
Comments
dbatools uses an older version of Microsoft.Data.SqlClient and will no longer load into the integrated environment. The work around is to use a non-integrated environment. |
:O what version do we need to upgrade to? |
@potatoqualitee - We are using version 5 - https://www.nuget.org/packages/Microsoft.Data.SqlClient/#versions-body-tab |
thank you, ill try to get to this next week 👍🏼 |
@adamdriscoll -- man, I cannot get this to work. I'm not good at DLLs, can you offer any advice?
I always start with 5.1 so I get that working (it was hell and I had to do some crazy stuff I never had to do before) and I move on to Core. Everything compiles just fine but when I go to connect to SQL Server, I get Microsoft.Data.SqlClient platform not supported. What? So then I look at the nuget page and it says Microsoft.Data.SqlClient works on netcoreapp3.1 and doesn't list net6.0 as supported! How on earth can SMO depend on something that can't run on that version of .net? Is there hope? |
Solved it 😮💨 |
@potatoqualitee Wooooo! Glad you got it working. Sorry I didn't get to your comment this weekend! |
Steps to Reproduce
https://forums.ironmansoftware.com/t/psu-3-3-0-nightly-invoke-dbaquery-not-working-anymore/7730
Expected behavior
Invoke-DbaQuery works
Actual behavior
Invoke-DbaQuery throws an error
Environment data
3.3.3
Visuals
No response
The text was updated successfully, but these errors were encountered: