Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 drop index at snapshot replication

Author  Topic 

pcock
Starting Member

12 Posts

Posted - 2008-12-11 : 22:04:12
We have a database system that replicates to another server. The replication server is being used for analysis. To improve a few queries I've created indexes on a few tables in the rep server. Unfortunately these indexes are all wiped out every morning after a snapshot. What is the best method I can use to use to re-generate these indexes? I am not very keen in the idea to run script/s every morning. Is there a way to do this automatically?
p/s: I'm a newbie.

Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-12 : 01:18:47
Create a post snapshot script and have it run once the snapshot has been applied. You can do this in a job.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -