I am trying to set the 'user instance' to 'true' of local database in Visual Studio 2012 as it is needed in making the project as .exe, however, when I try to modify the connection, it gives me an error like: 'The user instance login flag is not allowed when connecting to a user instance of SQL Server. The connection will be closed.'
Here is the connection string: `SqlConnection sql = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\Karen Kate\Documents\DateRangeTest.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True;Context Connection=False");`
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)