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

Export-DMVInformation halts at Query 40 when specifying -excludedb parameter on a 2008 R2 instance #5

Open
wsuhoey opened this issue May 24, 2017 · 1 comment

Comments

@wsuhoey
Copy link

wsuhoey commented May 24, 2017

When I run Export-DMVInformation -instance 'my2008R2server', it gets to Query 42 (IO Stats By File), and then runs into an error after about a dozen databases Incorrect syntax near ')', which I could re-pro manually doing Glenn Berry's script in SSMS on the last database it hits, which told me it's not an issue with PowerShell but with Glenn's script. I realized that this particular database is at a lower compatibility level (SQL 2000, compat level 80) so Glenn's script throws an error since it's not for a SQL 2000 database.

So I then tried doing Export-DMVInformation -instance 'my2008R2server' -excludedb 'mycompat80db', and the PowerShell script stops at Query 40 (Ad hoc Queries), and doesn't go to Query 41 and above.

Hence, the bug seems to be when using -excludedb, it does not go beyond Query 40.

@sanderstad
Copy link
Owner

sanderstad commented May 24, 2017 via email

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