Solved

Is indexing possible in snapshot Database (SQL Server 2005)

Posted on 2009-06-27
8
182 Views
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?

Thanks
0
Comment
Question by:anushahanna
[X]
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
8 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 250 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
0
 
LVL 6

Author Comment

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

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

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 210 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
http://articles.techrepublic.com.com/5100-10878_11-6146916.html

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.
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 24730131
acperkins,
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..

aneeshattingal,
Thanks for mentioning the moving of the indexes into the destination Snapshot database. That makes perfect sense.
0
 
LVL 6

Author Comment

by:anushahanna
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?
0
 
LVL 6

Author Closing Comment

by:anushahanna
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.
0
 
LVL 75

Expert Comment

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

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Hello, In my precious Article  (http://www.experts-exchange.com/Database/Reporting/A_15280-Create-Project-in-Microstrategy-Part-I.html)we saw the Configuration part for Microstrategy which included Metadata Creation and DataSource Preparation as …
I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

728 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