Welcome to Dream.In.Code
Become an Expert!

Join 149,934 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,497 people online right now. Registration is fast and FREE... Join Now!




Indexed Views

 
Reply to this topicStart new topic

Indexed Views, MsSql 2000

Fygar
16 Sep, 2002 - 12:02 PM
Post #1

I liek milk!!1
Group Icon

Joined: 28 Mar, 2002
Posts: 4,313


Dream Kudos: 50
My Contributions
Has anyone had any experience, and if so, want to help me out and give me some refrences and such on how to do it? Thanks.
User is offlineProfile CardPM
+Quote Post

Garstor
RE: Indexed Views
9 Oct, 2002 - 03:51 PM
Post #2

New D.I.C Head
*

Joined: 9 Oct, 2002
Posts: 25

QUOTE(Fygar @ Sep 16 2002, 02:02 PM)
Has anyone had any experience, and if so, want to help me out and give me some refrences and such on how to do it? Thanks.

Sorry, my company only runs the Standard Edition of SQL2000. I believe indexed views (aka materialized views) are available in the Enterprise Edition only.

As always, BOL (Books Online) is the first place to start looking. Since I've never had the chance to use an indexed view I can't say much else. I think that the view resultset is stored in the database as though it were a base table.

I am working around a serious slowdown in our system with a similar approach (we use MS-Access as the frontend to the SQL Server...in spite of my lectures against this... rolleyes.gif ).

In short, a stored procedure writes a record to a base table I created specifically for holding the view results. Now the Access reports that are taking forever to print have direct access to the data. Once everything is printed, a second stored procedure truncates the table since I have no need to keep the data around any longer. I use truncate instead of delete because it is a non-logged operation.

HTH!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 03:58PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month