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

Connecton string when connecting to sql server

$
0
0

I am trying to connect to a sql database in an aspnet .identity web forms project. The original sql express used

<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-bigdogpro-20170301013515.mdf;Initial Catalog=aspnet-bigdogpro-20170301013515;Integrated Security=True" providerName="System.Data.SqlClient" />

I tried this, the string used in the old version of the site.
    <add name ="DefaultConnection" connectionString="DESKTOP-8371SA1;Initial Catalog=bigdog;Integrated Security=True" providerName="System.Data.SqlClient" />

This returns this error: Keyword not supported: 'desktop-8371sa1;initial catalog'.

Is there more to the connection      in this case?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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