MarkMpn.SQL4CDS 10.0.0

dotnet add package MarkMpn.SQL4CDS --version 10.0.0
                    
NuGet\Install-Package MarkMpn.SQL4CDS -Version 10.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MarkMpn.SQL4CDS" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MarkMpn.SQL4CDS" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MarkMpn.SQL4CDS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MarkMpn.SQL4CDS --version 10.0.0
                    
#r "nuget: MarkMpn.SQL4CDS, 10.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MarkMpn.SQL4CDS@10.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MarkMpn.SQL4CDS&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MarkMpn.SQL4CDS&version=10.0.0
                    
Install as a Cake Tool

SQL 4 CDS allows you to use standard SQL syntax to query and manipulate your data and metadata in Dataverse / D365.

Supports
- SELECT
- INSERT
- UPDATE
- DELETE

Where possible the queries are converted to FetchXML, allowing you to generate FetchXML queries for
plugins or integrations by writing familiar SQL and converting it.

Queries can also run using the preview TDS Endpoint. A wide range of SQL functionality is also built
in to allow running queries that aren't directly supported by either FetchXML or the TDS Endpoint.

Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 421 7/18/2025
9.6.1 15,007 4/30/2025
9.6.0 15,206 2/22/2025
9.5.1 13,870 12/12/2024
9.5.0 2,133 12/10/2024
9.4.1 8,559 11/10/2024
9.4.0 2,262 11/5/2024
9.3.0 16,096 8/27/2024
9.2.0 9,517 7/12/2024
9.1.0 8,351 6/10/2024
9.0.1 7,890 5/8/2024
9.0.0 2,057 5/2/2024
8.0.0 20,910 11/25/2023
7.6.1 9,484 10/16/2023
7.6.0 4,913 9/30/2023
7.5.2 4,265 9/17/2023
7.5.1 614 9/11/2023
7.5.0 4,141 9/4/2023
7.4.0 7,605 8/7/2023
7.3.0 11,314 6/12/2023
7.2.2 2,862 5/2/2023
7.2.1 349 4/30/2023
7.1.0 17,283 1/31/2023
7.0.3 13,578 10/11/2022
7.0.2 3,091 10/2/2022
7.0.1 519 9/28/2022
7.0.0 3,329 9/21/2022
6.4.0 8,606 7/28/2022
6.3.0 5,786 6/28/2022
6.2.1 5,558 5/26/2022
6.2.0 2,649 5/18/2022
6.1.0 2,430 5/11/2022
6.0.1 6,480 4/13/2022
6.0.0 1,811 4/10/2022
5.4.1 9,817 1/18/2022
5.4.0 3,018 1/4/2022
5.3.1 4,959 12/2/2021
5.3.0 1,855 11/27/2021
5.2.5 8,568 9/29/2021
5.2.4 3,429 9/16/2021
5.2.3 2,770 9/1/2021
5.2.2 678 8/31/2021
5.2.1 5,681 6/29/2021
5.1.1 4,675 5/15/2021
5.1.0 1,657 5/6/2021
5.0.0 1,501 4/29/2021
4.1.0 3,743 3/18/2021
4.0.3 2,941 2/20/2021
4.0.2 1,592 2/10/2021
4.0.1 2,155 1/28/2021
4.0.0 2,348 1/13/2021
3.1.0 2,979 12/13/2020
3.0.0 3,738 11/2/2020
2.3.0 4,460 8/28/2020
2.2.0 3,160 7/15/2020
2.1.2 3,526 5/27/2020
2.1.1 1,018 5/25/2020
2.1.0 748 5/24/2020
2.0.1 2,619 4/23/2020
2.0.0 1,171 4/17/2020
1.0.9 4,033 2/3/2020
1.0.8 611 2/3/2020
1.0.7 867 1/31/2020
1.0.6 1,907 1/10/2020
1.0.5 795 1/9/2020
1.0.4 3,253 11/15/2019
1.0.3 1,158 11/11/2019
1.0.2 2,352 10/11/2019
1.0.1 682 10/11/2019
1.0.0 726 10/9/2019

New features:
* Schema from result set now exposes the originating table & column details
* CTEs are now supported in DML queries
* `versionnumber` column is now populated for Fetch XML based queries
* `binary` and `varbinary` data types and their conversions are now supported
* Format queries to include column display names

Improvements:
* `DROP TABLE IF NOT EXISTS` now confirms if table exists at runtime, not when the query is parsed
* `IGNORE_DUP_KEY` query hint now works when inserting `connection` records

Bug fixes:
* Do not expose internal columns when using wildcard queries
* Do not expose `type` or `name` virtual columns for lookup columns if another column with the same name already exists
* Inserting into `principalobjectaccess` records no longer generates type conversion error
* Inserting null values into a temporary table
* Handle duplicated column names produced from TDS Endpoint query being used for DML operations
* Custom Fetch XML datetime filter operators no longer crash
* `DISTINCT` / `GROUP BY` now applies correctly to subqueries
* Avoid conflicts between `DISTINCT`, `TOP` and aggregates
* Nullability calculations now handle `AND` / `OR` within `NOT` clause
* Do not cache `OPENJSON` results that are dependant on an outer query
* Possible fix for DML query multithreading issues