Как установить для параметра "экземпляр пользователя" значение "true" локальной базы данных в visual studio 2012
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");`