The following code example can be used to access an MSSQL Database through .NET:
Add the following to your web.config file:
Replace DB-SERVER, DB-NAME, DB-USERNAME and DB-PASSWORD with the relevant values.