"Invalid connection string: Keyword not supported: 'multiple active result sets'" when changing conn
questionuser123
Posts: 1 New member
I'm getting this error when I change the connection string from the default connection. I see that the .sqlproj.user file creates the connection string with these values:
<TargetConnectionString>Data Source=.;Initial Catalog=MyDB;Persist Security Info=False;User ID=sa;Password=;Pooling=False;Multiple Active Result Sets=False;Connect Timeout=10;Encrypt=False;Trust Server Certificate=False</TargetConnectionString>
No matter if I delete that portion of the connection string, the error remains until I delete the /bin and /obj folders, and then if I recompile I get the same error (the .sqlproj.user gets regenerated).
How do I solve this?
<TargetConnectionString>Data Source=.;Initial Catalog=MyDB;Persist Security Info=False;User ID=sa;Password=;Pooling=False;Multiple Active Result Sets=False;Connect Timeout=10;Encrypt=False;Trust Server Certificate=False</TargetConnectionString>
No matter if I delete that portion of the connection string, the error remains until I delete the /bin and /obj folders, and then if I recompile I get the same error (the .sqlproj.user gets regenerated).
How do I solve this?
Tagged:
Answers
I unload project and edit sqlproj.user file (in project root folder) - removing spaces in Multiple Active Result Sets and also Trust Server Certificate.
- but need to repeat this after every refresh which is painful!