public/Get-GzDbParameterPrefix.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function Get-GzDbParameterPrefix() {
    <#
        .SYNOPSIS
        Gets the default sql parameter prefix such as '@'
     
        .DESCRIPTION
        This function is called in absense of a specified parameter prefix
        for many of the functions / cmdlets in this modules.
     
        .EXAMPLE
        $parameterPrefix = Get-DbParameterPrefix
    #>

    [CmdletBinding()]
    Param(

    )

    Process {
        $parameterPrefix = Get-GzDbOption -Name "ParameterPrefix"
        if(!$parameterPrefix) {
            return "@";
        }
        
        return $parameterPrefix;
    }
 }