... ] Recipe 3.13 Executing Queries That Use COMPUTE BY Problem The SQL Server .NET data provider does not support the COMPUTE BY clause but you want to execute a COMPUTE BY statement using ... statement using ADO.NET. Solution Use the COMPUTE BY statement from the Command object of the OLE DB .NET data provider. The sample code defines a COMPUTE BY statement and executes it using ... Quantity " + "FROM [Order Details] " + "ORDER BY ProductID " + " ;COMPUTE SUM(quantity) by ProductID"; OleDbConnection conn = new OleDbConnection( ConfigurationSettings.AppSettings["OleDb_Shape_ConnectString"]);...