Article ID: 311540 - Last Review: May 16, 2007 - Revision: 3.6 A "COMPUTE BY statements not supported" exception occurs when you use the COMPUTE BY clause in SQL ServerThis article was previously published under Q311540 This article refers to the following Microsoft .NET
Framework Class Library namespaces:
On This PageSYMPTOMS When you attempt to use the COMPUTE BY clause with the
Microsoft SQL Server .NET Data Provider, you receive the following exception:
An unhandled exception of type
'System.InvalidOperationException' occurred in system.data.dll. Additional information: COMPUTE BY statements not supported. CAUSE This behavior is caused by a limitation of the SQL Server
.NET Data Provider. The SQL Server .NET Data Provider does not support all SQL syntax statements. RESOLUTION To resolve this issue, use ADO through COM Interop, or use
the OLE DB .NET Data Provider. STATUSThis
behavior is by design. MORE INFORMATIONSteps to Reproduce the Problem
REFERENCES For more information about ADO.NET objects and syntax, see
the Microsoft .NET Framework SDK Documentation, or browse to the following MSDN
Web site:
Accessing Data with ADO.NET For more details about the .NET Framework and the COM Interop
layer, browse to the following MSDN Web site: http://msdn2.microsoft.com/en-us/library/e80y5yhx(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/e80y5yhx(vs.71).aspx)
Exposing COM Components to the .NET Framework http://msdn2.microsoft.com/en-us/library/z6tx9dw3(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/z6tx9dw3(vs.71).aspx) APPLIES TO
| Article Translations
|
Back to the top
