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-DbaLogin examples produce unexpected results #49

Open
james-langbein opened this issue Aug 23, 2023 · 0 comments
Open

Export-DbaLogin examples produce unexpected results #49

james-langbein opened this issue Aug 23, 2023 · 0 comments

Comments

@james-langbein
Copy link

james-langbein commented Aug 23, 2023

On the page https://docs.dbatools.io/Export-DbaLogin there are examples of how to use the command. Using the first example, it has this command:
Export-DbaLogin -SqlInstance sql2005 -Path C:\temp\sql2005-logins.sql

Based on the description of the example, I would expect it to create that exact file.

However, it actually creates a folder which matches the given filename, including the file type, and then it creates a .sql file within that folder.

For example, I ran this command:
Export-DbaLogin -SqlInstance {server-name} -Path C:\temp\Migration\{servername}-Logins.txt
Which produced a folder in C:\temp\Migration\ called {servername}-Logins.txt, and then a .sql file inside that folder called {servername}-Logins.sql.

It looks like the description needs to be updated, or the behaviour is unintended.

I assume that this will likely affect other examples as well, but I haven't tested them.

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

1 participant