User Instance on local SQL Server Express using Microsoft.Data.SqlClient
Connection string
This Microsoft SqlClient Data Provider for SQL Server connection string can be used for connections to SQL Server 2019, SQL Server 2017, SQL Server 2016, SQL Server 2014 and SQL Server 2012.
The User Instance feature is deprecated with SQL Server 2012, use the SQL Server Express LocalDB feature instead.