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

Error dropping schema #3

Open
sanderstad opened this issue Jan 11, 2020 · 4 comments
Open

Error dropping schema #3

sanderstad opened this issue Jan 11, 2020 · 4 comments

Comments

@sanderstad
Copy link
Collaborator

Describe the bug
When removing the schemas you can get this error

WARNING: [21:08:56][Invoke-DbrDbRefresh] Something went wrong dropping the schema | Exception calling "EnumOwnedObjects" with "0" argument(s): "Constructor on type 'Microsoft.SqlServer.Management.Smo.SqlObjectUnion' not found."

Expected behavior
To remove all the schemas

Screenshots
If applicable, add screenshots to help explain your problem.
image

Additional context
Add any other context about the problem here.

@jzabroski
Copy link

Did you ever figure this out? I ran into this when trying to reference Microsoft.SqlServer.SqlManagementObjects in a .NET Core context (the nuget.org package says it supports .NET Standard). I logged an issue here: https://github.com/microsoft/sqltoolsservice/issues/927

@sanderstad
Copy link
Collaborator Author

@jzabroski I will have to look into it. I have been working a lot on other modules and a lot of stuff has changed in the mean time. I will let you know

@jzabroski
Copy link

@sanderstad ShueyBubbles from Microsoft agreed with my root cause analysis and adds more details in the above linked issue.

@jzabroski
Copy link

@sanderstad If you're using PowerShell, then behavior probably depends on what .net runtime PowerShell is running on: PowerShell Core uses .net core (and will error) and PowerShell 5 uses .net framework

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

2 participants