Not Availble in ADO.NET 1.0 and 1.1, to use this connection string use ADO.NET.
Using an User Instance on a local SQL Server Express instance:
Data Source=.\SQLExpress;Integrated Security=true; AttachDbFilename=|DataDirectory|\yourdb.mdf;User Instance=true;
Enable this feature on SQL server before trying to use this functionality. Two commands can be used
to switch the functionality on and off. This string creates a new SQL Server instance on the fly during connect.
* sp_configure 'user instances enabled', '1' (Enabled)
* sp_configure 'user instances enabled', '0'. (Disabled)
Attach a database file, located in the data directory, on connect to a local SQL Server Express instance: