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

What is the behavior when no database is specified? #709

Closed
msummers-nr opened this issue Dec 15, 2021 · 1 comment
Closed

What is the behavior when no database is specified? #709

msummers-nr opened this issue Dec 15, 2021 · 1 comment

Comments

@msummers-nr
Copy link

I'm using a query to pull query plans across all databases in a SQL Server instance. When I run this in SQL Studio the query runs against all databases in the instance, however my Go program only returns query plans from msdb. My Go program's connection only supplies the host, port, username, and password. Is there a way via connection configuration to query across all databases or do I need to list the databases and then query them individually?

Thanks in advance.

@kardianos
Copy link
Collaborator

specify the database with "/instance?database=". See readme.

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