I am installing Sql server via NSIS. but while connecting to Sql by Sqlconnection object in C# It gives me error that "Network Related or instance specific error..."
I am using following code. I need to create named instance as SQLEXpress2
ExecWait '"$INSTDIR\SQLEXpress2\SQLEXPRWT_x64_ENU.exe" /q /action=Install /features=SQL,SSMS /instancename=SQLEXpress2/IACCEPTSQLSERVERLICENSETERMS="True" /enableranu=1 /AddCurrentUserAsSqlAdmin="True" /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /SQLSYSADMINACCOUNTS="" /AGTSVCACCOUNT="NT AUTHORITY\SYSTEM" /skiprules=RebootRequiredCheck'
and I notices in Sql configuration manager the remote procedure call fails and named pipe , TCP ip protocols are disabled.