Is indexing possible in snapshot Database (SQL Server 2005)

Posted on 2009-06-27
Medium Priority
Last Modified: 2012-05-07
I am planning on using a Snapshot Database for a read-only database that is being used for reporting, using the SNAPSHOT OF command.

Is it possible to create index on this snapshot database, to make the reports more efficient?

Question by:anushahanna
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
LVL 75

Accepted Solution

Aneesh Retnakaran earned 1000 total points
ID: 24730055
snapshots actually fetches the data from the original database, so if you create the index on the original db your queries will be able to use this

Author Comment

ID: 24730062
so the indexes carry over to the snapshot database?

But can we create any new index on the snapshot database?
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 840 total points
ID: 24730063
I urge you to read the article I posted in your other thread:
Capture the reporting benefits of database snapshots in SQL Server 2005

The key part is in the first sentence:
"Database snapshots allow you to create read-only databases for reporting and can also be useful in your data recovery efforts in the event of a disaster."
I am not sure how much clearer that has to be.
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

LVL 75

Expert Comment

by:Anthony Perkins
ID: 24730064
>>But can we create any new index on the snapshot database?<<
Let's try it this way:  No.

Author Comment

ID: 24730131
very sorry.. that was a big oversight on my part.. Thanks for your patience and clarrifying that in simplest terms.

I had read that article when you mentioned it first, and observed the heart of what this feature is all about.

You have convinced me of snapshot databases, and i have been playing with it some, and i was thinking hard before moving on, this topic being new to me, if i am missing any other details, and that is where this oversight came into the picture..

Thanks for mentioning the moving of the indexes into the destination Snapshot database. That makes perfect sense.

Author Comment

ID: 24730135

in my test, the Snapshot database queries, some complex, were much faster than in the source database. What feature of snapshot database would you attribute this to?

Author Closing Comment

ID: 31597637
The question was due to an oversight, but the answers gave me a good perspective, understanding, and also reading the article again, re-affirmed what i have been learning for the past 2 weeks.
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 24730141
may be it is using a differebt execution plan, check and compare the execution plans

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question