LocalDb ConnectionString with Initial Catalog

In frustation of spending too much time on finding the correct documentation on how to connect to a LocalDb with an initial catalog, I just written this post. Here you go:

<connectionStrings>
<add name="MyLocalDbConnectionString" connectionString="Server=(LocalDB)\MyLocalDbInstance; Integrated Security=true; Initial Catalog=MyDatabase;"/>
</connectionStrings>

No comments yet.

Leave a Reply