Both servers are in the same domain. I checked the SQL server and insured that all the accounts have access to the SQL Instance; Farm Account and Setup Account have sysadmin rights. The port 1433 is open on SQL's firewall. There is connectivity between the servers.
First Time I ran the script…
- Testing access to SQL server/instance/alias: Dev01
- Trying to connect to "Dev01"... - Fail
--------------------------------------------------------------
- Script halted!
- Connection Error. Check server name, port, firewall.
Press any key to exit...
Second Time I ran the script…
- Creating SQL alias “Dev01,1433”...
-Testing access to SQL server/instance/alias: Dev01
- Trying to connect to “Dev01”… - Fail
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Script halted!
- Exception calling “Open” with “0” argument(s): “Cannot generate SSPI context.”
Press any key to exit…
Comments: ** Comment from web user: webguynj **
I have been having this problem consistently now and I am here are my steps to create the issue:
* Have a Domain Server nothing but default policies
* Build Default Windows 2012 Server Called WFE Join to Domain
* Build Default Windows 2012 Server called SQL Join to domain
* Install SQL 2012 on SQL Server using Guildlines from Vlad Catrinescu White Paper
* Create named instance SP2013Dev on port 1433
* Create firewall rule allowing port 1433
* Use AutoSPInstaller 387, and AutoSPInstallerGUI create
* Verify port 1433 in open to SQL server
* Makes Sure SPInstall Account is Admin on Both Servers and SQL SysAdmin
* Basic install Specifying Create Alias true Sections as follows
```
<Database>
<DBServer>SP2013DEV_ALIAS</DBServer>
<DBAlias Create="true" DBInstance="SQL\SP2013" DBPort="" />
<DBPrefix>SP13Dev</DBPrefix>
<ConfigDB>Config</ConfigDB>
</Database>
```
* Run AutoSQInstaller
Output:
```
- Writing config.xml to (Get-Item C:\Users\SVC_SP~1\AppData\Local\Temp).FullName...
--------------------------------------------------------------
- Testing access to SQL server/instance/alias: SP2013DEV_ALIAS
- Trying to connect to "SP2013DEV_ALIAS"... - Fail
--------------------------------------------------------------
- Script halted!
- Connection Error. Check server name, port, firewall.
Press any key to exit...
```