You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE: SqlScript, SqlScriptQuery - Add new key 'Id' to allow reuse of a script with different variables (#2043)
- SqlScript
- BREAKING CHANGE: The parameter `Id` is now required to allow
reuse of a script with different variables. Set this to a unique value.
The information entered is never used to actually run the script.
(issue #596).
- Fix unit test to fully check Set-TargetResource using timeout.
- SqlScriptQuery
- BREAKING CHANGE: The parameter `Id` is now required to allow
reuse of a script with different variables. Set this to a unique value.
The information entered is never used to actually run the script.
(issue #596).
[Key, Description("Unique identifier for this resource. Set this to a unique value - allowing multiple resources with only the Variable parameter changing. The information entered is never used during the actual process of running the scripts.")] String Id;
4
5
[Key, Description("Specifies the name of the _SQL Server Database Engine_ instance. For the default instance specify the value `'MSSQLSERVER'`.")] String InstanceName;
5
6
[Key, Description("Path to the T-SQL file that will perform _Set_ action.")] String SetFilePath;
6
7
[Key, Description("Path to the T-SQL file that will perform _Get_ action. Any values returned by the T-SQL queries will also be returned when calling _Get_ (for example by using the cmdlet `Get-DscConfiguration`) through the `'GetResult'` property.")] String GetFilePath;
[Key, Description("Unique identifier for this resource. Set this to a unique value - allowing multiple resources with only the Variable parameter changing. The information entered is never used during the actual process of running the scripts.")] String Id;
4
5
[Key, Description("Specifies the name of the _SQL Server Database Engine_ instance. For the default instance specify the value `'MSSQLSERVER'`.")] String InstanceName;
5
6
[Key, Description("Full T-SQL query that will perform _Get_ action. Any values returned by the T-SQL queries will also be returned when calling _Get_ (for example by using the cmdlet `Get-DscConfiguration`) through the `'GetResult'` property.")] String GetQuery;
6
7
[Key, Description("Full T-SQL query that will perform _Test_ action. Any script that does not throw an error or returns `NULL` is evaluated to `$true`. The cmdlet `Invoke-SqlCmd` treats T-SQL `PRINT` statements as verbose text, and will not cause the test to return `$false`.")] String TestQuery;
0 commit comments