Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Index views on SQL 2000 Standard


Index views on SQL 2000 Standard

Author
Message
krypto69
krypto69
SSC Eights!
SSC Eights! (869 reputation)SSC Eights! (869 reputation)SSC Eights! (869 reputation)SSC Eights! (869 reputation)SSC Eights! (869 reputation)SSC Eights! (869 reputation)SSC Eights! (869 reputation)SSC Eights! (869 reputation)

Group: General Forum Members
Points: 869 Visits: 2420
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 ?



Sean Lange
Sean Lange
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16550 Visits: 17004
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)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search