PRB: View Created with a Subquery Cannot Be Updated

Last reviewed: April 28, 1997
Article ID: Q80398

The information in this article applies to:

  - Microsoft SQL Server version 4.2 for OS/2
  - Microsoft SQL Server version 4.2

SYMPTOMS

A view created using a subquery cannot be updated. An attempt to update a view created with a subquery generates the following message:

   View <view_name> is not updatable because it contains aggregates.
   (Msg 4403, Level 16, State 1).

CAUSE

This is similar to the case where a view created with an aggregate cannot be updated. This happens because the subqueries are processed as a special type of aggregate, and therefore few significant differences exist between aggregate and subquery processing.

According to ANSI (X3.135-1989), a view cannot be updated if it includes a subquery.


Additional query words: Windows NT
Keywords : kbother SSrvTran_SQL SSrvWinNT
Version : 4.2 | 4.2
Platform : OS/2 Windows
Issue type : kberrmsg


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.