I don't know where this error comes from at all. I have set up SQL Change Automation in VS2019 and began to get these errors for each .sqlproj solution I have. The errors are marked in the .sqlproj file, but no line is given for any of them.
I also don't can't find those words in the .sqlproj files, nor "MultipleActiveResultSets". I don't have them in the .sqlproj.users files neither.
Does anyone know if this is a known error with SQL Change Automation?
APPLIES TO: SQL Server Azure SQL Database Azure SQL Data Warehouse Parallel Data Warehouse. SQL Server 2005 (9.x) introduced support for multiple active result sets (MARS) in applications accessing the Database Engine. In earlier versions of SQL Server, database applications could not maintain multiple active statements on a connection.
Get the SQL Change Automation extension for Visual Studio 2017 and 2019. Redgate SQL Change Automation is a migrations-first database development and deployment tool inside Visual Studio, allowing you to extend DevOps processes to your SQL Server databases, so you can: Prevent the database being a bottleneck to delivering value quickly
In earlier versions of SQL Server, database applications could not maintain multiple active statements on a connection. When using SQL Server default result sets, the application had to process or cancel all result sets from one batch before it could execute any other batch on that connection.
SQL Change Automation also lets you configure comparison settings and filters for precise results first time. In short, SQL Change Automation provides the most efficient and effective control over database deployments, which saves time and means users can deliver value quickly. “This product is fantastic.
This issue of SQL Change Automation has been reported in their forum discussion 87146
There you can find the workaround:
unload the project, then modify the connection string from "
Multiple Active Result Sets
" to "MultipleActiveResultSets
" (remove the spaces).
I found the connection string in the [project].sqlproj.user
file.
In some project I also had to remove the spaces from "Trust Server Certificate
".
For instance, it used to say:
<TargetConnectionString>Data Source=localhost;Initial Catalog=Dbname;Integrated Security=True;Persist Security Info=False;Pooling=False;Multiple Active Result Sets=False;Encrypt=False;Trust Server Certificate=False</TargetConnectionString>
and I manually changed into:
<TargetConnectionString>Data Source=localhost;Initial Catalog=Dbname;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Encrypt=False;TrustServerCertificate=False;</TargetConnectionString>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With