SqlRs: Replace Invoke-SqlCmd
with Invoke-SqlDscQuery
#1917
Labels
enhancement
The issue is an enhancement request.
good first issue
The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub
We should replace the command
Invoke-SqlCmd
in the resource SqlRS.SqlServerDsc/source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1
Lines 490 to 491 in 3e81805
Instead we should use the command
Invoke-SqlDscQuery
. Using the commandInvoke-SqlDscQuery
will help the resource not being dependent on SqlServer module, and only require the SMO assemblies to be available.The text was updated successfully, but these errors were encountered: