Get-DbConnectionStringBuilderFromTemplate

Description

Given a Connection String Builder template and a list of replacement tokens,
return a new copy of the CSB for each token.

Syntax

Get-DbConnectionStringBuilderFromTemplate [-templateCSB] <DbConnectionStringBuilder> [-replacementTokens] <Array>
[<CommonParameters>]

Parameters

Name

Alias

Description

Required?

Pipeline Input

Default Value

-templateCSB


A Connection String Builder that has a database name with a {0} format string
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9ea857fc-ff20-4148-ae54-8e0c52cb7a29"><ac:plain-text-body><![CDATA[token in it. For example, $templateCSB['Initial Catalog'] might be ]]></ac:plain-text-body></ac:structured-macro>
"EdFi_{0}".

true

false


-replacementTokens


An array of strings that will replace the {0} format string token. For example,
it might be a list of ODS years, like @("Ods_2014","Ods_2015","Ods_2016").

true

false


Outputs

  • Return one CSB, of the same type as was input, for each replacement token.