• 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 Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/