Reply to topic  [ 3 posts ] 
SQL Help needed 
Author Message
Occasionally has a life

Joined: Sat Nov 28, 2009 5:28 pm
Posts: 228
Reply with quote
HI,
I have to convert some data in a SQL 2005 database. This involves millions of records. Is there a simple way to generate a script to drop all the indexes and one to recreate them again?

All help is appreciated.

_________________
cheers
Rich

A Vision of a Champion is someone who is bent over, drenched with sweat, at the point of exhaustion, when no one else is watching


Fri Jun 18, 2010 3:35 pm
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:25 pm
Posts: 10691
Location: Bramsche
Reply with quote
When you export the data, it should automatically generate a script, with the data, to generate the tables, indexes etc. and load the data...

What exactly are you trying to do? A little more detail would be helpful.

_________________
"Do you know what this is? Hmm? No, I can see you do not. You have that vacant look in your eyes, which says hold my head to your ear, you will hear the sea!" - Londo Molari

Executive Producer No Agenda Show 246


Fri Jun 18, 2010 5:25 pm
Profile ICQ
Occasionally has a life

Joined: Sat Nov 28, 2009 5:28 pm
Posts: 228
Reply with quote
I am changing the data in approx 400 tables to split the data set, all of the data changes will be in indexes.

Was thinking of dropping all the indexex on the DB, doing the data change and then rebuilding the indexes...

_________________
cheers
Rich

A Vision of a Champion is someone who is bent over, drenched with sweat, at the point of exhaustion, when no one else is watching


Fri Jun 18, 2010 9:38 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.