Bd4software

Bd4software

Share

Bd4software is a Software development company.

23/05/2018

How do connect to localDB with c # application

LocalDB always has a "default" instance that is created when installing, even if you never use it. In SQL Server 2012 Express LocalDB, the default instance name is v11.0. In the 2014 version of LocalDB, the default instance name is MSSQLLocalDB. And, just as a period "." can be used to connect to a non-LocalDB default instance:

Connection String will be like...........

string conn = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=E:\hms.mdf;Integrated Security=True;Connect Timeout=30";

Want your business to be the top-listed Computer & Electronics Service in Khulna?
Click here to claim your Sponsored Listing.

Telephone

Website

Address

2 No Crossa Road Tot Para
Khulna
9100