Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Connection to Network Server in ASP.NET Core

$
0
0

this is what I used to connect in .NET Framework App

<connectionStrings><add name="ARTSQLConStrng" providerName="System.Data.SqlClient" connectionString="Data Source=EMBRYOLOGIST;Initial Catalog=ARTSQL;Persist Security Info=True;User ID=ARTSQLDB;Password=abumaizer85;Integrated Security=SSPI" /></connectionStrings>

The Server is my PC and of course the database on a network path.

How can I write it in appsetting.json, I tried the following but did not work

{"Logging": {"IncludeScopes": false,"LogLevel": {"Default": "Warning"
    }
  },"ConnectionStrings": {"ARTNetCore": "Data Source=EMBRYOLOGIST;Initial Catalog=ARTCORE;Database=ARTCORE;Trusted_Connection=True;MultipleActiveResultSets=true"
  }
}


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>