SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Schedule copy of db then add index
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mruprai
Starting Member

9 Posts

Posted - 10/15/2012 :  15:26:53  Show Profile  Reply with Quote
I have a 2 db. One for Mi, I want to copy to the mi database(from the 1st db) and then create indexs specific to the MI db.

I have sql server 2008 r2.

What's the easiest way to do this.

chadmat
The Chadinator

USA
1974 Posts

Posted - 10/15/2012 :  17:36:04  Show Profile  Visit chadmat's Homepage  Reply with Quote
Backup and Restore I guess. Your question isn't really clear.

-Chad
Go to Top of Page

v_yaduvanshi
Starting Member

India
10 Posts

Posted - 10/16/2012 :  03:54:36  Show Profile  Reply with Quote
Hi,
if its regular practice, you can use COPY DATABASE wizard and schedule it as per your requirement.

quote:
Originally posted by mruprai

I have a 2 db. One for Mi, I want to copy to the mi database(from the 1st db) and then create indexs specific to the MI db.

I have sql server 2008 r2.

What's the easiest way to do this.



Virendra Yaduvanshi
MCTS, MCITP SQL Server
http://wikidba.wordpress.com/
Go to Top of Page

Bustaz Kool
Flowing Fount of Yak Knowledge

USA
1754 Posts

Posted - 10/17/2012 :  20:09:32  Show Profile  Reply with Quote
You could set up Snapshot Replication to run on a daily basis. As part of the replication configuration turn off the copy of the indexes at the Article level but also define a post-snapshot script that would run to create the MI specific indexes that you want.

=================================================
We are far more concerned about the desecration of the flag than we are about the desecration of our land. -Wendell Berry
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000