Comments (5)
If I look at a server with SQL Server 2016 installed without SSMS there is only SQLPS module.
If you install latest SSMS (July) on a server with SQL Server 2016 you get both SQLPS and SQLServer modules.
So I think if we want to use SQLServer before SQLPS, then the check should be switched. Like below. Or am I missing something?
If (Get-Module SQLServer -ListAvailable)
{
Write-Verbose "Preferred SQLServer module found"
$module = Get-Module SQLServer -ListAvailable
}
else
{
Write-Verbose "SQLServer module not found, using older SQLPS module "
$module = Get-Module SQLPS -ListAvailable
}
from sqlserverdsc.
Indeed - I wrote it very quickly last night to make sure that it was recorded as an issue to be aware of
Even moreso if the SQLServer Module gets published to the PowerShell Gallery as it wont require SSMS to be installed on that machine as well.
from sqlserverdsc.
If it gets published to the gallery (and updated more frequently than SQL Server/SSMS) then it would be nice to have the option in the setup resource to pull that from the galley and install it.
from sqlserverdsc.
I think this issue also needs to make sure that tests are run using both SQLPS and SQLServer stub module. If SQLServer module will be the preferred module if it exists. Then all tests needs to be verified to be able to work with both modules.
from sqlserverdsc.
We also need to add a control question for this in the GitHub ISSUE_TEMPLATE - if the user is using SQLPS och SQLServer module, and what version om the module.
from sqlserverdsc.
Related Issues (20)
- SqlWindowsFirewall: Duplicate Browser Firewall Rule for AS feature creates Error in subsequent Test-TargetResource runs HOT 3
- SqlServerDsc: GitHub Action Code Analysis should run on built module HOT 1
- SqlSetup: Seems to evaluate the `SourcePath` too early for Puppet HOT 6
- Problem using dsc_sqlscript as a resource in puppet HOT 3
- SqlDatabasePermission: Problem using dsc_sqldatabasepermission in Puppet HOT 4
- SqlLogin: Attempting to disable and already disabled login throws an error
- SqlPermission: Undefined DSC resource 'SqlPermission' HOT 8
- Table of Contents broken HOT 3
- Install-SqlDscServer with -PrepareImage errors when InstanceName is specified HOT 1
- `Get-SqlDscPreferredModule`: Should be possible to specify which version of the SqlServer module is imported HOT 9
- SqlServerDsc: Implement release assets (GitHub releases) HOT 1
- SqlServerDsc: Look at using CODEOWNERS file HOT 1
- SqlTraceFlag: "An exception occurred in SMO while trying to manage a service." HOT 7
- Configure SQL Server Agent Properties HOT 4
- SqlAgentSettings: New resource proposal
- SqlDatabasePermission: Return the correct username from Get-method for the Credential property HOT 1
- SqlAgentOperator - Doesn't update email addresses HOT 7
- SAPwd challenge on setup HOT 5
- SqlServiceAccount: Unable to set the service account HOT 11
- SqlAudit: Some bugs in the unit tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlserverdsc.