Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Index views on SQL 2000 Standard Expand / Collapse
Author
Message
Posted Friday, November 8, 2013 12:47 PM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Yesterday @ 7:31 AM
Points: 706, Visits: 1,752
Hi,

My understanding is that it is possible to use create an indexed view in SQL2000 standard edition? (was going to buy Enterprise)

The main slow performing query that I have that uses a view is:

SELECT vLogData.requisition, vLogData.OrigDate, vLogData.Originator, vLogData.TotAmt, vLogData.[Status Description], vLogData.Approver, vLogData.SubmittedTo, vLogData.ApprDate, vLogData.ReqName, vLogData.Dept, vLogData.PO, vLogData.Comments, vLogData.CO, vLogData.myReq, vLogData.Closed, vlogdata.sent FROM REQ.dbo.vLogData vLogData where vLogData.OrigDate >= '11/8/2012' ORDER BY vLogData.myReq

How would I create an indexed view in SQL2000 standard for this ?



Post #1512797
Posted Friday, November 8, 2013 2:29 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 1:04 PM
Points: 13,086, Visits: 12,553
krypto69 (11/8/2013)
Hi,

My understanding is that it is possible to use create an indexed view in SQL2000 standard edition? (was going to buy Enterprise)

The main slow performing query that I have that uses a view is:

SELECT vLogData.requisition, vLogData.OrigDate, vLogData.Originator, vLogData.TotAmt, vLogData.[Status Description], vLogData.Approver, vLogData.SubmittedTo, vLogData.ApprDate, vLogData.ReqName, vLogData.Dept, vLogData.PO, vLogData.Comments, vLogData.CO, vLogData.myReq, vLogData.Closed, vlogdata.sent FROM REQ.dbo.vLogData vLogData where vLogData.OrigDate >= '11/8/2012' ORDER BY vLogData.myReq

How would I create an indexed view in SQL2000 standard for this ?


You don't.

Direct quote from BOL (http://technet.microsoft.com/en-us/library/cc917717.aspx):

Indexed views are a feature of SQL Server 2000 Enterprise Edition and SQL Server 2000 Developer Edition only.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1512818
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse