return to TCP transport for DB conn alias

This commit is contained in:
Steve Bohlen
2015-01-17 15:17:56 -05:00
parent 21d2ac8fab
commit 791124366d

View File

@@ -29,12 +29,12 @@ $TCPAlias = "DBMSSOCN," + $ServerName + "\" + $InstanceName
$NamedPipesAlias = "DBNMPNTW,\\" + $ServerName + "\pipe\" + "MSSQL$" + $InstanceName + "\sql\query"
#Creating our TCP/IP Aliases
#New-ItemProperty -Path $x86 -Name $AliasName -PropertyType String -Value $TCPAlias -Force
#New-ItemProperty -Path $x64 -Name $AliasName -PropertyType String -Value $TCPAlias -Force
New-ItemProperty -Path $x86 -Name $AliasName -PropertyType String -Value $TCPAlias -Force
New-ItemProperty -Path $x64 -Name $AliasName -PropertyType String -Value $TCPAlias -Force
#WARNING: left here in case we ever want to switch to named-piped, but since we can't have two aliases
# named the same for two diff. conn. protcols, this is commented out here in favor of the TCPIP alias above
#Creating our Named Pipes Aliases
New-ItemProperty -Path $x86 <EFBFBD>Name $AliasName -PropertyType String -Value $NamedPipesAlias
New-ItemProperty -Path $x64 <EFBFBD>Name $AliasName -PropertyType String -Value $NamedPipesAlias
#New-ItemProperty -Path $x86 <20>Name $AliasName -PropertyType String -Value $NamedPipesAlias
#New-ItemProperty -Path $x64 <20>Name $AliasName -PropertyType String -Value $NamedPipesAlias