Skip to content

AutoSPInstallerModule.psm1 Fails to make SQL alias correctly if WFE name is similar to SQL host name. #77

@SPDEVGUY

Description

@SPDEVGUY

Unusual environment has discovered an edge case!

The WFE host is "NMS-SPUAT" the SQL Host is "NMS-SPUATSQL".

in AutoSPInstallerModule.psm1 Function Add-SQLAlias () line 7256:


If ((MatchComputerName $SQLInstance $env:COMPUTERNAME) -or ($SQLInstance.StartsWith($env:ComputerName +"\"))) {
        $protocol = "dbmslpcn" # Shared Memory
        }
    else {
        $protocol = "DBMSSOCN" # TCP/IP
    }

Match computer name is returning a false positive as this is supposed to be checking if the SQL host is the same machine as the sharepoint host and using named pipes instead of TCP/IP.

The cliconfig entry also gets really odd...
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions