troubleshooting db connectivity for integration tests

This commit is contained in:
Steve Bohlen
2015-01-17 19:04:17 -05:00
parent 791124366d
commit 5a5965ac73

View File

@@ -26,15 +26,15 @@ if ((test-path -path $x64) -ne $True)
#Adding the extra "fluff" to tell the machine what type of alias it is
$TCPAlias = "DBMSSOCN," + $ServerName + "\" + $InstanceName
$NamedPipesAlias = "DBNMPNTW,\\" + $ServerName + "\pipe\" + "MSSQL$" + $InstanceName + "\sql\query"
$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 <20>Name $AliasName -PropertyType String -Value $NamedPipesAlias
#New-ItemProperty -Path $x64 <20>Name $AliasName -PropertyType String -Value $NamedPipesAlias
New-ItemProperty -Path $x86 <EFBFBD>Name $AliasName -PropertyType String -Value $NamedPipesAlias
New-ItemProperty -Path $x64 <EFBFBD>Name $AliasName -PropertyType String -Value $NamedPipesAlias