< Back

add-connectionString

Fri Jan 10, 2020 8:23 pm

NAME add-connectionString



SYNOPSIS

Adds or replaces a new named connection string to the current app domain configuration





SYNTAX

add-connectionString [-name] <String> [-connectionString] <String> [[-providerName] <String>] [<CommonParameters>]





DESCRIPTION

Adds or replaces a new named connection string to the current app domain configuration





PARAMETERS

-name <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-connectionString <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-providerName <String>



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





NAME: add-connectionString

AUTHOR: beefarino

LASTEDIT: 11/07/2013 09:21:12

KEYWORDS:



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>add-connectionString -name "MyConnectionString" -connectionString

"Server=MyServer;Database=MyData;Trusted_Connection=True;Encrypt=True;Connection Timeout=30;" -providerName

System.Data.SqlClient















RELATED LINKS

http://www.codeowls.com

https://github.com/beefarino/powershell ... ain-config