11 lines
261 B
PowerShell
11 lines
261 B
PowerShell
|
function ConvertTo-WhatIfQuery {
|
||
|
[CmdletBinding()]
|
||
|
[OutputType([string])]
|
||
|
param (
|
||
|
[Parameter(Mandatory = $true)]
|
||
|
[ValidateNotNullOrEmpty()]
|
||
|
[string]$Query
|
||
|
)
|
||
|
|
||
|
return "BEGIN TRANSACTION; $Query; ROLLBACK TRANSACTION;"
|
||
|
}
|