We are setting up an IIS Server on Windows Server 2012 in a DMZ, running off-domain. This server requires access to SQL Server 2005 on the other side of the firewall, inside our domain.
We plan to use SQL Server authentication to achieve this, which means our ASP.NET application will need to know the user id and password. What is the best way to hide this information on the IIS server? We were thinking either embed it in the source code, or encrypt it and put it on a file.
But is there a better way altogether?