Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2019 error with SQL Change Automation: "Keyword not supported: 'multiple active result sets'"

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?

like image 512
Heathcliff Avatar asked Jul 03 '20 14:07

Heathcliff


People also ask

Does SQL Server 2005 support multiple active result sets?

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.

What is the SQL change automation extension for Visual Studio 2017?

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

Why can’t I have multiple active statements on a connection?

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.

What is SQL change automation?

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.


1 Answers

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>
like image 121
Mariano Desanze Avatar answered Oct 02 '22 21:10

Mariano Desanze