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

SqlDatabase: Returns the SQL Server collation from Get-TargetResource if the database does not exist #1343

Closed
johlju opened this issue Apr 27, 2019 · 1 comment
Labels
duplicate The issue or PR is the duplicate of another.

Comments

@johlju
Copy link
Member

johlju commented Apr 27, 2019

Details of the scenario you tried and the problem that is occurring

The Get-TargetResource returns the collection of the SQL Server if the database does not exist.

https://github.com/PowerShell/SqlServerDsc/blob/1fd9a8acef4ac224abe3e312c95b49f1dfc7adca/DSCResources/MSFT_SqlDatabase/MSFT_SqlDatabase.psm1#L69

Verbose logs showing the problem

n/a

Suggested solution to the issue

If the database is not found then it should return $null as the database collation.

The DSC configuration that is used to reproduce the issue (as detailed as possible)

n/a

SQL Server edition and version the target node is running

All

SQL Server PowerShell modules present on the target node

n/a

The operating system the target node is running

All Windows OS's

Version and build of PowerShell the target node is running

n/a

Version of the DSC module that was used ('dev' if using current dev branch)

dev

@johlju johlju added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub labels Apr 27, 2019
@johlju
Copy link
Member Author

johlju commented Jul 15, 2019

Duplicate of issue #1395, keeping #1395 to track this.

@johlju johlju closed this as completed Jul 15, 2019
@johlju johlju added duplicate The issue or PR is the duplicate of another. and removed bug The issue is a bug. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub help wanted The issue is up for grabs for anyone in the community. labels Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The issue or PR is the duplicate of another.
Projects
None yet
Development

No branches or pull requests

1 participant