Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6810169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:10:26+00:00 2026-05-26T20:10:26+00:00

I want to try and understand what SQL Server 2008 is doing when an

  • 0

I want to try and understand what SQL Server 2008 is doing when an indexed view is created.

Say I have the following:

CREATE View [vwCoaterC48] WITH SCHEMABINDING
AS

Select
    ID,
    equipment_id as EquipmentId,
    read_time as ReadTime,
    C48_R_Act_Temperature,
    C48_L_Act_Temperature,
    C48_C_Act_Temperature
From dbo.td_coater_c48 c
Where read_time >= Convert(dateTime,'11/4/2011',120)

CREATE UNIQUE CLUSTERED INDEX [IX_vwCoaterC48_ReadTime_EquipmentID_ID] ON [vwCoaterC48] 
(
    [ReadTime] ASC,
    [EquipmentId] ASC,
    [ID] ASC
)

Am I correct that SQL Server will create some sort of physical storage (table?, what?) for this. The physical storage, or table, will only contain rows where the read_time column is >= 11/4/2011, and a clustered index will exist on the columns indicated?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:10:26+00:00Added an answer on May 26, 2026 at 8:10 pm

    A ‘table’ is a logical concept, there is no storage concept for a ‘table’. As storage, SQL Server understands two types of storage: a heap (a set of unordered rows) or a b-tree (a ordered set of rows). An index (clustered or non-clustered) is a b-tree, a ‘table’ without a clustered index has a heap for base storage.

    Creating an indexed view adds a new b-tree that contains the rows that satisfied the query, according to the view definition and the clustered index definition. Furthermore, all operations on the table maintain the indexed view b-tree as well: a delete in the table removes the row from the indexed view b-tree, an insert into the table adds a row into the indexed view b-tree, an update of a row in the table updates a row in the indexed view b-tree. This maintenance guarantees that the condition in the original view definition continues to be satisfied: only rows that match the WHERE read_time>... condition are added, an update that modifies read_time to a value that no longer satisfies the condition will remove the row from the indexed view b-tree etc etc. All this maintenance is accomplished by appropriately modifying the query execution plans for insert/update/delete operations to evaluate the indexed view predicate and do the appropriate operation on the indexed view b-tree. Unlike some common misconception states, the view query is never explicitly re-evaluated for maintenance, all the maintenance is done on a row-by-row evaluation basis as the rows are being inserted/updated/deleted. And this is why certain aggregate operations (eg. MIN, MAX) are not supported in indexed views.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a small sample project to try to understand events. I want to
I want to try PartCover for code coverage. I'm running Visual Studio 2008 Professional
I have a small project I want to try porting to Python 3 -
I currently have MVS2008 and I want to try the 2010 version hoping that
I want to try to understand the use of these constructs because I don't.
To make thing easier to understand lets take the following example: I want to
OK so I have read a fair amount about SQL Server's locking stuff, but
I want to try to convert a string to a Guid, but I don't
I want to try out SICP with Python. Can any one point to materials
I want to try CMake to manage a new C++ project. However, some files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.